Assembly: fixes

This commit is contained in:
PaddleStroke
2024-01-29 18:20:48 +01:00
parent 906d0bb0cb
commit a48d34f6c2
3 changed files with 66 additions and 6 deletions

View File

@@ -941,7 +941,7 @@ class ViewProviderGroundedJoint:
# Remove grounded tag.
if hasattr(feature.Object, "ObjectToGround"):
obj = feature.Object.ObjectToGround
if obj.Label.endswith(" 🔒"):
if obj is not None and obj.Label.endswith(" 🔒"):
obj.Label = obj.Label[:-2]
return True # If False is returned the object won't be deleted