David Catuhe 5 years ago
parent
commit
37a3089a2e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Materials/Node/nodeMaterial.ts

+ 1 - 1
src/Materials/Node/nodeMaterial.ts

@@ -882,7 +882,7 @@ export class NodeMaterial extends PushMaterial {
 
         if (mustRebind) {
             let sharedData = this._sharedData;
-            if (effect && scene.getCachedMaterial() !== this) {
+            if (effect && scene.getCachedEffect() !== effect) {
                 // Bindable blocks
                 for (var block of sharedData.bindableBlocks) {
                     block.bind(effect, this, mesh);