Skip to content

Commit 668fb11

Browse files
authored
Merge pull request #16 from vpython/compound_origin_fix
compound origin fix
2 parents d2df338 + bf0aeea commit 668fb11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

vpython/vpython.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3144,6 +3144,7 @@ def handle_event(self, evt): ## events and scene info updates
31443144
# Set attribute_vector.value, which avoids nullifying the
31453145
# on_change functions that detect changes in e.g. obj.pos.y
31463146
obj._pos.value = list_to_vec(p)
3147+
obj._origin = obj._pos
31473148
s = evt['size']
31483149
obj._size.value = obj._size0 = list_to_vec(s)
31493150
obj._axis.value = obj._size._x*norm(obj._axis)

0 commit comments

Comments
 (0)