Browse Source

copy material extras

Wittmann Tobias 8 years ago
parent
commit
3997aa477a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      examples/js/loaders/GLTF2Loader.js

+ 3 - 1
examples/js/loaders/GLTF2Loader.js

@@ -2107,7 +2107,9 @@ THREE.GLTF2Loader = ( function () {
 				// Normal map textures use OpenGL conventions:
 				// https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#materialnormaltexture
 				_material.normalScale.x = -1;
-
+				
+				_material.userData = material.extras;
+				
 				return _material;
 
 			} );