From c6b2dbb95a71ec63a196d5a7f06680b91ddcdf68 Mon Sep 17 00:00:00 2001 From: kovacsv Date: Wed, 29 Dec 2021 09:39:50 +0100 Subject: [PATCH] Do not show default material popup when there are vertex colors. --- source/model/modelutils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/model/modelutils.js b/source/model/modelutils.js index 3335252..18ca3f5 100644 --- a/source/model/modelutils.js +++ b/source/model/modelutils.js @@ -172,7 +172,7 @@ OV.HasDefaultMaterial = function (model) { for (let i = 0; i < model.MaterialCount (); i++) { let material = model.GetMaterial (i); - if (material.isDefault) { + if (material.isDefault && !material.vertexColors) { return true; } }