sunag před 7 roky
rodič
revize
43b98a79ad
1 změnil soubory, kde provedl 3 přidání a 2 odebrání
  1. 3 2
      examples/webgl_sprites_nodes.html

+ 3 - 2
examples/webgl_sprites_nodes.html

@@ -273,13 +273,14 @@
 
 
 			THREE.NodeMaterialLoaderUtils.replaceUUID( json, walkingManTexture, walkingManTextureURL );
 			THREE.NodeMaterialLoaderUtils.replaceUUID( json, walkingManTexture, walkingManTextureURL );
 
 
-			// unserialize
 			// deserialize
 			// deserialize
 
 
-			var material = new THREE.NodeMaterialLoader( null, library ).parse( json ).build();
+			var material = new THREE.NodeMaterialLoader( null, library ).parse( json );
 
 
 			// replace material
 			// replace material
 
 
+			sprite.material.dispose();
+
 			sprite.material = material;
 			sprite.material = material;
 
 
 		}
 		}

粤ICP备19079148号