Ver código fonte

ShadowNode: Fix `WeakMap` usage. (#33964)

Michael Herzog 2 semanas atrás
pai
commit
87ca874c6a
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/nodes/lighting/ShadowNode.js

+ 2 - 2
src/nodes/lighting/ShadowNode.js

@@ -860,13 +860,13 @@ class ShadowNode extends ShadowBaseNode {
 
 		if ( needsUpdate ) {
 
-			if ( this._cameraFrameId[ frame.camera ] === frame.frameId ) {
+			if ( this._cameraFrameId.get( frame.camera ) === frame.frameId ) {
 
 				needsUpdate = false;
 
 			}
 
-			this._cameraFrameId[ frame.camera ] = frame.frameId;
+			this._cameraFrameId.set( frame.camera, frame.frameId );
 
 		}
 

粤ICP备19079148号