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