Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 713 vs 720 for /trunk/Source Code/Scenes/SceneState.cpp

Diff revisions: vs.
  @@ -16,7 +16,6 @@
16 16 _debugDrawLines(false),
17 17 _debugDrawTargetLines(false),
18 18 _playAnimations(true)
19 -
20 19 {
21 20 _gizmoState = GizmoState::NO_GIZMO;
22 21 _cameraMgr = &Application::instance().kernel().getCameraMgr();
  @@ -35,7 +34,7 @@
35 34 void SceneRenderState::toggleAxisLines() {
36 35 static U32 selection = 0;
37 36 Console::d_printfn(Locale::get(_ID("TOGGLE_SCENE_AXIS_GIZMO")));
38 - selection = ++selection % 4;
37 + ++selection %= to_const_uint(GizmoState::COUNT);
39 38 switch (selection) {
40 39 case 0:
41 40 gizmoState(GizmoState::SELECTED_GIZMO);