|
@@ -430,7 +430,7 @@ export class TextureBlock extends NodeMaterialBlock {
|
|
|
serializationObject.convertToGammaSpace = this.convertToGammaSpace;
|
|
|
serializationObject.convertToLinearSpace = this.convertToLinearSpace;
|
|
|
serializationObject.fragmentOnly = this._fragmentOnly;
|
|
|
- if (this.texture) {
|
|
|
+ if (this.texture && !this.texture.isRenderTarget) {
|
|
|
serializationObject.texture = this.texture.serialize();
|
|
|
}
|
|
|
|