Prevent material modification if vertex colors are present.
This commit is contained in:
parent
df5ad1e6be
commit
6a022775a4
@ -67,7 +67,7 @@ OV.ThreeModelLoader = class
|
||||
|
||||
ReplaceDefaultMaterialColor (defaultColor)
|
||||
{
|
||||
if (this.defaultMaterial !== null) {
|
||||
if (this.defaultMaterial !== null && !this.defaultMaterial.vertexColors) {
|
||||
this.defaultMaterial.color = OV.ConvertColorToThreeColor (defaultColor);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user