Browse Source

Fix sceneloader not working with embedded models.

edmellum 13 years ago
parent
commit
11c4cce204
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/extras/loaders/SceneLoader.js

+ 3 - 0
src/extras/loaders/SceneLoader.js

@@ -577,6 +577,9 @@ THREE.SceneLoader.prototype.createScene = function ( json, callbackFinished, url
 
 			var modelJson = data.embeds[ g.id ],
 				texture_path = "";
+			
+			// Pass metadata along to jsonLoader so it knows the format version.
+			modelJson.metadata = data.metadata;
 
 			if ( modelJson ) {