FEM: material task panel, use card path to start material editor

This commit is contained in:
Bernd Hahnebach
2019-04-25 19:47:16 +02:00
parent 84bb893e4b
commit 1efad46a34

View File

@@ -348,8 +348,7 @@ class _TaskPanelFemMaterial:
def edit_material(self):
# opens the material editor to choose a material or edit material params
import MaterialEditor
new_material_params = self.material.copy()
new_material_params = MaterialEditor.editMaterial(new_material_params)
new_material_params = MaterialEditor.editMaterial(card_path=self.card_path)
# material editor returns the mat_dict only, not a card_path
# if the material editor was canceled a empty dict will be returned
# do not change the self.material