Просмотр исходного кода

RenderObject: Drop redundant morph target check. (#33771)

Michael Herzog 6 дней назад
Родитель
Сommit
1a71e48fb7
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      src/nodes/accessors/ReferenceNode.js
  2. 1 1
      src/renderers/common/RenderObject.js

+ 1 - 0
src/nodes/accessors/ReferenceNode.js

@@ -262,6 +262,7 @@ class ReferenceNode extends Node {
 		} else if ( Array.isArray( this.getValueFromReference() ) ) {
 		} else if ( Array.isArray( this.getValueFromReference() ) ) {
 
 
 			node = uniformArray( null, uniformType );
 			node = uniformArray( null, uniformType );
+			node.updateType = NodeUpdateType.OBJECT;
 
 
 		} else if ( uniformType === 'texture' ) {
 		} else if ( uniformType === 'texture' ) {
 
 

+ 1 - 1
src/renderers/common/RenderObject.js

@@ -809,7 +809,7 @@ class RenderObject {
 
 
 		}
 		}
 
 
-		if ( object.isInstancedMesh || object.count > 1 || Array.isArray( object.morphTargetInfluences ) ) {
+		if ( object.isInstancedMesh || object.count > 1 ) {
 
 
 			// TODO: https://github.com/mrdoob/three.js/pull/29066#issuecomment-2269400850
 			// TODO: https://github.com/mrdoob/three.js/pull/29066#issuecomment-2269400850
 
 

粤ICP备19079148号