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:
committed by
GitHub
parent
a00fb8efc2
commit
03ce3f0009
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user