|
@@ -589,8 +589,8 @@
|
|
|
}
|
|
|
|
|
|
if (parsedMaterial.customType === "BABYLON.PBRMaterial" && !parsedMaterial.overloadedAlbedo) {
|
|
|
- parsedMaterial.customType === "BABYLON.legacyPBRMaterial";
|
|
|
- if (!(<any>BABYLON).legacyPBRMaterial) {
|
|
|
+ parsedMaterial.customType = "BABYLON.LegacyPBRMaterial";
|
|
|
+ if (!(<any>BABYLON).LegacyPBRMaterial) {
|
|
|
BABYLON.Tools.Error("Your scene is trying to load a legacy version of the PBRMaterial, please, include it from the materials library.");
|
|
|
return;
|
|
|
}
|