Scaling can now be restarting after left clicking the mouse anywhere

dev
Shariq Shah 6 years ago
parent 9c5e96503e
commit 69846c6158
  1. 11
      src/game/editor.c

@ -702,10 +702,19 @@ void editor_on_mousebutton_release(const struct Event* event)
vec3_fill(&editor->tool_scale_amount, 0.f, 0.f, 0.f);
editor->draw_cursor_entity = false;
}
else
{
if(editor->current_axis != EDITOR_AXIS_NONE)
{
editor->tool_scale_started = true;
editor->picking_enabled = false;
editor->draw_cursor_entity = true;
vec3_assign(&editor->tool_scale_amount, &editor->cursor_entity->base.transform.scale);
}
}
break;
}
}
}
void editor_on_mousebutton_press(const struct Event* event)

Loading…
Cancel
Save