Skip to content

Commit bf0aeea

Browse files
committed
compound origin fix
1 parent 3fc9851 commit bf0aeea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpython/vpython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3121,7 +3121,6 @@ def handle_event(self, evt): ## events and scene info updates
31213121
self.mouse.setpick( evt )
31223122
self._waitfor = True # what pick is looking for
31233123
elif ev == '_compound': # compound, text, extrusion
3124-
print('compound event return')
31253124
obj = self._compound
31263125
p = evt['pos']
31273126
if obj._objName == 'text':
@@ -3132,6 +3131,7 @@ def handle_event(self, evt): ## events and scene info updates
31323131
# Set attribute_vector.value, which avoids nullifying the
31333132
# on_change functions that detect changes in e.g. obj.pos.y
31343133
obj._pos.value = list_to_vec(p)
3134+
obj._origin = obj._pos
31353135
s = evt['size']
31363136
obj._size.value = obj._size0 = list_to_vec(s)
31373137
obj._axis.value = obj._size._x*norm(obj._axis)

0 commit comments

Comments
 (0)