The problem is that scene::mouse_state returns the value of player_mouse_state, but player_mouse_state is updated in step_world which runs after editor_step.
Possible fix: Add a check inside scene::mouse_state - if it's called during editor_step directly return the input mouse state instead
(Alexspeedy)
The problem is that
scene::mouse_state
returns the value ofplayer_mouse_state
, butplayer_mouse_state
is updated instep_world
which runs aftereditor_step
. Possible fix: Add a check insidescene::mouse_state
- if it's called duringeditor_step
directly return the input mouse state instead (Alexspeedy)