|
|
@@ -120,13 +120,13 @@ class InstanceNode extends Node {
|
|
|
|
|
|
update( /*frame*/ ) {
|
|
|
|
|
|
- if ( this.instanceMatrix.usage !== DynamicDrawUsage && this.buffer != null && this.instanceMatrix.version !== this.buffer.version ) {
|
|
|
+ if ( this.instanceMatrix.usage !== DynamicDrawUsage && this.buffer !== null && this.instanceMatrix.version !== this.buffer.version ) {
|
|
|
|
|
|
this.buffer.version = this.instanceMatrix.version;
|
|
|
|
|
|
}
|
|
|
|
|
|
- if ( this.instanceColor && this.instanceColor.usage !== DynamicDrawUsage && this.bufferColor != null && this.instanceColor.version !== this.bufferColor.version ) {
|
|
|
+ if ( this.instanceColor && this.instanceColor.usage !== DynamicDrawUsage && this.bufferColor !== null && this.instanceColor.version !== this.bufferColor.version ) {
|
|
|
|
|
|
this.bufferColor.version = this.instanceColor.version;
|
|
|
|