Skip to content

Commit

Permalink
Fem: bugfix for FluidMaterial does not show in FemMaterialTaskPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
Xia, Qingfeng authored and berndhahnebach committed Feb 4, 2020
1 parent ae107ac commit 13ea18d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Mod/Fem/femguiobjects/_ViewProviderFemMaterial.py
Expand Up @@ -203,7 +203,9 @@ def __init__(self, obj):

# get all available materials (fill self.materials, self.cards and self.icons)
from materialtools.cardutils import import_materials as getmats
self.materials, self.cards, self.icons = getmats()
# Note: import_materials(category="Solid", ...),
# category default to Solid, but must be given for FluidMaterial to be imported
self.materials, self.cards, self.icons = getmats(self.obj.Category )
# fill the material comboboxes with material cards
self.add_cards_to_combo_box()

Expand Down

0 comments on commit 13ea18d

Please sign in to comment.