mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-01 19:43:49 +00:00
Fix for Issue #88 for River Editor Snapping
This commit is contained in:
parent
394d87cd54
commit
9ba4a35bca
2 changed files with 6 additions and 2 deletions
|
|
@ -225,13 +225,16 @@ void GuiRiverEditorCtrl::get3DCursor( GuiCursor *&cursor,
|
|||
|
||||
void GuiRiverEditorCtrl::on3DMouseDown(const Gui3DMouseEvent & event)
|
||||
{
|
||||
|
||||
_process3DMouseDown( event );
|
||||
|
||||
mGizmo->on3DMouseDown( event );
|
||||
|
||||
if ( !isFirstResponder() )
|
||||
setFirstResponder();
|
||||
|
||||
}
|
||||
|
||||
void GuiRiverEditorCtrl::_process3DMouseDown( const Gui3DMouseEvent& event )
|
||||
{
|
||||
// Get the raycast collision position
|
||||
Point3F tPos;
|
||||
if ( !getStaticPos( event, tPos ) )
|
||||
|
|
|
|||
|
|
@ -121,6 +121,7 @@ class GuiRiverEditorCtrl : public EditTSCtrl
|
|||
void _prepRenderImage( SceneManager* sceneGraph, const SceneRenderState* sceneState );
|
||||
void _drawRiverSpline( River *river, const ColorI &color );
|
||||
void _drawRiverControlNodes( River *river, const ColorI &color );
|
||||
void _process3DMouseDown( const Gui3DMouseEvent& event );
|
||||
|
||||
void submitUndo( const UTF8 *name = "Action" );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue