Skip to content

Commit

Permalink
Merge pull request #45 from vpython/Fix_bug_in_update_of_scene.forward
Browse files Browse the repository at this point in the history
Fix bug in update of scene.forward
  • Loading branch information
mwcraig committed Jan 5, 2020
2 parents 11600e0 + 96fe444 commit fe67462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vpython/vpython.py
Expand Up @@ -3205,7 +3205,7 @@ def handle_event(self, evt): ## events and scene info updates
else: ## user can change forward (spin), range/autoscale (zoom), up (touch), center (pan)
if 'forward' in evt and self.userspin and not self._set_forward:
fwd = evt['forward']
self._forward = list_to_vec(fwd)
self._axis = list_to_vec(fwd) # the fundamental meaning of scene.forward is scene.axis
self._set_forward = False
if 'up' in evt and self.userspin and not self._set_up:
cup = evt['up']
Expand Down

0 comments on commit fe67462

Please sign in to comment.