Skip to content

Commit

Permalink
added some more error checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolalysenko committed Feb 6, 2013
1 parent 63be45c commit d5a0ffe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down

0 comments on commit d5a0ffe

Please sign in to comment.