Explorar o código

Merge pull request #21268 from jure/patch-1

UniformUtils.cloneUniforms(): Also clone quaternions
Mr.doob %!s(int64=4) %!d(string=hai) anos
pai
achega
bea15b3157
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();