Fixed the unclaimed load conditions

This commit is contained in:
Jose Luis Cercos Pita 2015-10-16 13:00:31 +02:00
parent 5467d0aec2
commit 1d00b9f250

View File

@ -336,6 +336,16 @@ class ViewProviderShip:
del obj.Tanks[i - bad_linked]
bad_linked += 1
# Claim the loading conditions
bad_linked = 0
for i, t in enumerate(obj.LoadConditions):
try:
t_obj = FreeCAD.ActiveDocument.getObject(t)
objs.append(t_obj)
except:
del obj.LoadConditions[i - bad_linked]
bad_linked += 1
return objs
def getIcon(self):