mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
uninitialized variables-gui
This commit is contained in:
parent
b9c207765e
commit
9fef1b3cd1
43 changed files with 119 additions and 33 deletions
|
|
@ -101,7 +101,9 @@ GuiEditCtrl::GuiEditCtrl()
|
|||
mDrawBorderLines( true ),
|
||||
mFullBoxSelection( false ),
|
||||
mSnapSensitivity( 2 ),
|
||||
mDrawGuides( true )
|
||||
mDrawGuides( true ),
|
||||
mDragAddSelection(false),
|
||||
mDragMoveUndo(false)
|
||||
{
|
||||
VECTOR_SET_ASSOCIATION( mSelectedControls );
|
||||
VECTOR_SET_ASSOCIATION( mDragBeginPoints );
|
||||
|
|
@ -116,11 +118,21 @@ GuiEditCtrl::GuiEditCtrl()
|
|||
|
||||
mDragGuide[ GuideVertical ] = false;
|
||||
mDragGuide[ GuideHorizontal ] = false;
|
||||
mDragGuideIndex[0] = 0;
|
||||
mDragGuideIndex[1] = 1;
|
||||
|
||||
std::fill_n(mSnapOffset, 2, 0);
|
||||
std::fill_n(mSnapEdge, 2, SnapEdgeMin);
|
||||
|
||||
if( !smGuidesPropertyName[ GuideVertical ] )
|
||||
smGuidesPropertyName[ GuideVertical ] = StringTable->insert( "guidesVertical" );
|
||||
if( !smGuidesPropertyName[ GuideHorizontal ] )
|
||||
smGuidesPropertyName[ GuideHorizontal ] = StringTable->insert( "guidesHorizontal" );
|
||||
|
||||
mTrash = NULL;
|
||||
mSelectedSet = NULL;
|
||||
mMouseDownMode = GuiEditCtrl::Selecting;
|
||||
mSizingMode = GuiEditCtrl::sizingNone;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue