Skip to content

Commit

Permalink
FEM: Python base VP, logs in get icon
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed Mar 18, 2020
1 parent 3a8d5db commit 2a50a19
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Mod/Fem/femguiobjects/ViewProviderFemConstraint.py
Expand Up @@ -51,7 +51,7 @@ def __init__(self, vobj):
# needs to be overwritten, if no standard icon name is used
# see constraint body heat source as an example
def getIcon(self):
print(self.Object.Name)
# print(self.Object.Name)
"""after load from FCStd file, self.icon does not exist, return constant path instead"""
# https://forum.freecadweb.org/viewtopic.php?f=18&t=44009
if (
Expand All @@ -61,6 +61,8 @@ def getIcon(self):
):
return ":/icons/{}.svg".format(self.Object.Proxy.Type.replace("Fem::", "FEM_"))
else:
FreeCAD.Console.PrintError("No icon returned for {}\n".format(self.Object.Name))
FreeCAD.Console.PrintMessage("{}\n".format(self.Object.Proxy.Type))
return ""

def attach(self, vobj):
Expand Down

0 comments on commit 2a50a19

Please sign in to comment.