Skip to content

Commit

Permalink
make sure the Angle property is set
Browse files Browse the repository at this point in the history
  • Loading branch information
ego-lay-atman-bay committed Jul 5, 2024
1 parent 3cbd52b commit 2c06691
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1253,9 +1253,8 @@ def updatePosition(value, column):
)
sizes.append(self.objectProperties['pos']['size'])

angle = '0'
if 'Angle' in obj.properties:
angle = obj.properties['Angle']

angle = obj.properties.setdefault('Angle', 0)
self.objectProperties['angle'] = addProperty(
'Angle',
angle,
Expand Down

0 comments on commit 2c06691

Please sign in to comment.