Procházet zdrojové kódy

GLTFLoader: Texture URI as name. (#25664)

sunag před 2 roky
rodič
revize
b9002a805d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      examples/jsm/loaders/GLTFLoader.js

+ 1 - 1
examples/jsm/loaders/GLTFLoader.js

@@ -2988,7 +2988,7 @@ class GLTFParser {
 
 			texture.flipY = false;
 
-			texture.name = textureDef.name || sourceDef.name || '';
+			texture.name = textureDef.name || sourceDef.name || sourceDef.uri || '';
 
 			const samplers = json.samplers || {};
 			const sampler = samplers[ textureDef.sampler ] || {};