Update am_primitive.py
Fix bug when circle doesn't have any rotation by adding a default 0 degree rotation.
This commit is contained in:
parent
89b5b714c9
commit
415bdbc2e4
1 changed files with 1 additions and 1 deletions
|
|
@ -56,7 +56,7 @@ class AMCirclePrimitiveDef(AMPrimitiveDef):
|
|||
diameter = modifiers[1]
|
||||
center_x = modifiers[2]
|
||||
center_y = modifiers[3]
|
||||
rotation = modifiers[4]
|
||||
rotation = modifiers[4] if len(modifiers)>4 else AMConstantExpression(float(0))
|
||||
return cls(code, exposure, diameter, center_x, center_y, rotation)
|
||||
|
||||
def __init__(self, code, exposure, diameter, center_x, center_y, rotation):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue