Browse Source

fix check error versions

sunag 7 years ago
parent
commit
6f337f8814
1 changed files with 5 additions and 0 deletions
  1. 5 0
      examples/js/loaders/sea3d/SEA3DDraco.js

+ 5 - 0
examples/js/loaders/sea3d/SEA3DDraco.js

@@ -70,6 +70,11 @@ SEA3D.GeometryDraco = function ( name, data, sea3d ) {
 
 		console.error( "SEA3D Draco Decoding failed:", decodingStatus.error_msg() );
 
+		// use an empty geometry
+		this.vertex = new Float32Array();
+
+		return;
+
 	}
 
 	var index = 0;