Skip to content

Commit 2f1c6c0

Browse files
authored
LightsNode: Honor map version in cache key. (#31396)
1 parent 42048f8 commit 2f1c6c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/nodes/lighting/LightsNode.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,10 @@ class LightsNode extends Node {
127127
if ( light.isSpotLight === true ) {
128128

129129
const hashMap = ( light.map !== null ) ? light.map.id : - 1;
130+
const hashMapVersion = ( light.map !== null ) ? light.map.version : - 1;
130131
const hashColorNode = ( light.colorNode ) ? light.colorNode.getCacheKey() : - 1;
131132

132-
_hashData.push( hashMap, hashColorNode );
133+
_hashData.push( hashMap, hashMapVersion, hashColorNode );
133134

134135
}
135136

0 commit comments

Comments
 (0)