Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added some more error checks

  • Loading branch information...
commit d5a0ffed1f01d9203ee9433208c3624a09f2eb4f 1 parent 63be45c
@mikolalysenko authored
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/models.js
  2. +1 −1  package.json
View
4 lib/models.js
@@ -33,8 +33,8 @@ function json2vrml(model, texture_name) {
"use strict";
//Work around: Also accept `positions` instead of just `verts` to be compatible with trimesh.js
- var mverts = model.positions || model.verts;
- if(!(mverts && model.faces)) {
+ var mverts = model.positions || model.verts || model.vertices;
+ if(!(mverts && model.faces && mverts.length && model.faces)) {
return null;
}
View
2  package.json
@@ -1,6 +1,6 @@
{
"name": "shapeways",
- "version": "0.5.2",
+ "version": "0.5.3",
"author": "Mikola Lysenko (mikolalysenko@gmail.com)",
"description": "3D print stuff via ShapeWays",
"contributors": [
Please sign in to comment.
Something went wrong with that request. Please try again.