Add parameters to show\hide mesh and internal materials (#1240)

* Add internal material flag

* Add parameters to show\hide internal and transform materials

* Filter materials by meshes instead
This commit is contained in:
Stanislav Denisov
2025-10-16 07:48:17 +02:00
committed by GitHub
parent a00fb8efc2
commit 03ce3f0009
6 changed files with 100 additions and 7 deletions
+5
View File
@@ -1359,6 +1359,11 @@ void TerrainWindow::RefreshMaterialComboBoxes()
comboBox.AddItem("NO MATERIAL", INVALID_ENTITY);
for (size_t i = 0; i < scene.materials.GetCount(); ++i)
{
if (scene.materials[i].IsInternal())
{
continue;
}
Entity entity = scene.materials.GetEntity(i);
if (scene.names.Contains(entity))
{