|
|
@ -165,7 +165,7 @@ export class PhysicalMaterialRecord extends MaterialTableRecord
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
this.material.needsUpdate = true;
|
|
|
|
this.material.needsUpdate = true;
|
|
|
|
if (this.useMap && this.map && !this.map.IsErase)
|
|
|
|
if (this.useMap && this.map?.Object && !this.map.IsErase)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let map = this.map.Object as TextureTableRecord;
|
|
|
|
let map = this.map.Object as TextureTableRecord;
|
|
|
|
let texture = map.GetThreeTexture();
|
|
|
|
let texture = map.GetThreeTexture();
|
|
|
@ -189,7 +189,7 @@ export class PhysicalMaterialRecord extends MaterialTableRecord
|
|
|
|
this.material.emissiveMap = undefined;
|
|
|
|
this.material.emissiveMap = undefined;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (this.useMap && this.useBumpMap && this.bumpMap && !this.bumpMap.IsErase)
|
|
|
|
if (this.useMap && this.useBumpMap && this.bumpMap?.Object && !this.bumpMap.IsErase)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let map = this.bumpMap.Object as TextureTableRecord;
|
|
|
|
let map = this.bumpMap.Object as TextureTableRecord;
|
|
|
|
let texture = map.GetThreeTexture();
|
|
|
|
let texture = map.GetThreeTexture();
|
|
|
@ -200,7 +200,7 @@ export class PhysicalMaterialRecord extends MaterialTableRecord
|
|
|
|
else
|
|
|
|
else
|
|
|
|
this.material.bumpMap = undefined;
|
|
|
|
this.material.bumpMap = undefined;
|
|
|
|
|
|
|
|
|
|
|
|
if (this.useMap && this.roughnessMap && this.roughnessMap && !this.roughnessMap.IsErase)
|
|
|
|
if (this.useMap && this.roughnessMap?.Object && !this.roughnessMap.IsErase)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
let map = this.roughnessMap.Object as TextureTableRecord;
|
|
|
|
let map = this.roughnessMap.Object as TextureTableRecord;
|
|
|
|
let texture = map.GetThreeTexture();
|
|
|
|
let texture = map.GetThreeTexture();
|
|
|
|