File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
src/materials/nodes/manager Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ class NodeMaterialObserver {
143143 data = {
144144 material : this . getMaterialData ( material ) ,
145145 geometry : {
146+ id : geometry . id ,
146147 attributes : this . getAttributesData ( geometry . attributes ) ,
147148 indexVersion : geometry . index ? geometry . index . version : null ,
148149 drawRange : { start : geometry . drawRange . start , count : geometry . drawRange . count }
@@ -362,6 +363,13 @@ class NodeMaterialObserver {
362363 const storedAttributeNames = Object . keys ( storedAttributes ) ;
363364 const currentAttributeNames = Object . keys ( attributes ) ;
364365
366+ if ( storedGeometryData . id !== geometry . id ) {
367+
368+ storedGeometryData . id = geometry . id ;
369+ return false ;
370+
371+ }
372+
365373 if ( storedAttributeNames . length !== currentAttributeNames . length ) {
366374
367375 renderObjectData . geometry . attributes = this . getAttributesData ( attributes ) ;
You can’t perform that action at this time.
0 commit comments