Browse Source

Merge pull request #21268 from jure/patch-1

UniformUtils.cloneUniforms(): Also clone quaternions
Mr.doob 4 years ago
parent
commit
bea15b3157
1 changed files with 1 additions and 1 deletions
  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 ||
 			if ( property && ( property.isColor ||
 				property.isMatrix3 || property.isMatrix4 ||
 				property.isMatrix3 || property.isMatrix4 ||
 				property.isVector2 || property.isVector3 || property.isVector4 ||
 				property.isVector2 || property.isVector3 || property.isVector4 ||
-				property.isTexture ) ) {
+				property.isTexture || property.isQuaternion ) ) {
 
 
 				dst[ u ][ p ] = property.clone();
 				dst[ u ][ p ] = property.clone();