Material: Call to import_materials only returning solids

Fixes #12933

The previous card implementation used a parameter to select either
solids or fluids. The current material dictionary ignored the
parameter and only returned solids. This PR restores the use of the
material type filter.
This commit is contained in:
David Carter
2024-03-14 00:45:02 -04:00
committed by Chris Hennes
parent 4988fa77fe
commit c5505bc438

View File

@@ -269,7 +269,7 @@ def import_materials(category='Solid', template=False):
mat = materialManager.getMaterial(matUUID)
physicalModels = mat.PhysicalModels
fluid = ('1ae66d8c-1ba1-4211-ad12-b9917573b202' in physicalModels)
if not fluid:
if (category == 'Solid' and not fluid) or (category != 'Solid' and fluid):
path = mat.LibraryRoot + "/" + mat.Directory
materials[path] = mat.Properties