Skip to content

Commit

Permalink
snap grid WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jkulawik committed Sep 28, 2020
1 parent a06041a commit 7a9be80
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions HPL2/tools/editors/common/EditorWindowLowerToolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ iEditorWindowLowerToolbar::iEditorWindowLowerToolbar(iEditorBase* apEditor) : iE
mbClipPlaneAdded = false;
mbClipPlaneRemoved = false;
mbClipPlaneVecUpdated = false;

//mpShortcutToggleSnap = NULL;
}

//---------------------------------------------------------------
Expand Down Expand Up @@ -119,6 +121,11 @@ iWidget* iEditorWindowLowerToolbar::AddGridControls()
mpBSnap->SetToolTip(_W("Toggle grid snapping"));
mpBSnap->SetToolTipEnabled(true);

mpSet->AddGlobalShortcut(0, eKey_C, mpBSnap, eGuiMessage_ButtonPressed);

/*mpShortcutToggleSnap = mpBSnap->AddShortcut(eKeyModifier_None, eKey_C);
mpShortcutToggleSnap->SetEnabled(true);*/

// Height and sep.
mpInpPlaneHeight = CreateInputNumber(cVector3f(65,5,0.1f), _W("Height"), "", mpGridControlsGroup, 50, 0.25f);
mpInpSnapSep = CreateInputNumber(cVector3f(120,5,0.1f), _W("Snap sep."), "", mpGridControlsGroup, 50, 0.25f);
Expand Down

0 comments on commit 7a9be80

Please sign in to comment.