Prechádzať zdrojové kódy

In cloneUniforms also clone quaternions

Jure Triglav 4 rokov pred
rodič
commit
364ee8f445
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/renderers/shaders/UniformsUtils.js

+ 1 - 1
src/renderers/shaders/UniformsUtils.js

@@ -17,7 +17,7 @@ export function cloneUniforms( src ) {
 			if ( property && ( property.isColor ||
 				property.isMatrix3 || property.isMatrix4 ||
 				property.isVector2 || property.isVector3 || property.isVector4 ||
-				property.isTexture ) ) {
+				property.isTexture || property.isQuaternion ) ) {
 
 				dst[ u ][ p ] = property.clone();