浏览代码

Merge pull request #21268 from jure/patch-1

UniformUtils.cloneUniforms(): Also clone quaternions
Mr.doob 4 年之前
父节点
当前提交
bea15b3157
共有 1 个文件被更改,包括 1 次插入1 次删除
  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();