uninitialized variables-gui

This commit is contained in:
AzaezelX 2020-05-11 15:03:27 -05:00
parent b9c207765e
commit 9fef1b3cd1
43 changed files with 119 additions and 33 deletions

View file

@ -146,7 +146,9 @@ S32 CreatorTree::Node::getSelected()
CreatorTree::CreatorTree() :
mCurId(0),
mRoot(0),
mTxtOffset(5)
mTxtOffset(5),
mTabSize(11),
mMaxWidth(0)
{
VECTOR_SET_ASSOCIATION(mNodeList);
clear();

View file

@ -106,7 +106,7 @@ EditTSCtrl::EditTSCtrl()
mMiddleMouseDown = false;
mMiddleMouseTriggered = false;
mMouseLeft = false;
mLastMouseClamping = false;
mBlendSB = NULL;
}

View file

@ -202,6 +202,7 @@ GizmoProfile::GizmoProfile()
centroidColor.set( 255, 255, 255 );
centroidHighlightColor.set( 255, 0, 255 );
hideDisabledAxes = true;
restoreDefaultState();
}
@ -297,6 +298,7 @@ Gizmo::Gizmo()
mObjectMat( true ),
mTransform( true ),
mCameraMat( true ),
mProjLen(1000.0f),
mSelectionIdx( -1 ),
mObjectMatInv( true ),
mCurrentTransform( true ),
@ -308,10 +310,13 @@ Gizmo::Gizmo()
mCurrentAlignment( World ),
mDeltaTotalScale( 0,0,0 ),
mDeltaTotalRot( 0,0,0 ),
mDeltaAngle(0.0f),
mLastAngle(0.0f),
mDeltaTotalPos( 0,0,0 ),
mCurrentMode( MoveMode ),
mMouseDownPos( -1,-1 ),
mDirty( false ),
mSign(0.0f),
mMouseDown( false ),
mLastWorldMat( true ),
mLastProjMat( true ),
@ -324,9 +329,10 @@ Gizmo::Gizmo()
mHighlightAll( false ),
mMoveGridEnabled( true ),
mMoveGridSize( 20.f ),
mMoveGridSpacing( 1.f )
{
mUniformHandleEnabled = true;
mMoveGridSpacing( 1.f ),
mUniformHandleEnabled(true),
mScreenRotateHandleEnabled(false)
{
mAxisEnabled[0] = mAxisEnabled[1] = mAxisEnabled[2] = true;
}

View file

@ -391,9 +391,9 @@ protected:
/// Spacing between grid lines on the move grid.
U32 mMoveGridSpacing;
bool mAxisEnabled[3];
bool mUniformHandleEnabled;
bool mScreenRotateHandleEnabled;
bool mAxisEnabled[3];
// Used to override rendering of handles.
bool mHighlightCentroidHandle;

View file

@ -68,6 +68,7 @@ GuiConvexEditorCtrl::GuiConvexEditorCtrl()
mFaceHL( -1 ),
mFaceSavedXfm( true ),
mSavedUndo( false ),
mHasGeometry(false),
mDragging( false ),
mGizmoMatOffset( Point3F::Zero ),
mPivotPos( Point3F::Zero ),

View file

@ -248,7 +248,7 @@ class GuiConvexEditorUndoAction : public UndoAction
friend class GuiConvexEditorCtrl;
public:
GuiConvexEditorUndoAction( const UTF8* actionName ) : UndoAction( actionName )
GuiConvexEditorUndoAction( const UTF8* actionName ) : UndoAction( actionName ), mEditor(NULL), mObjId(NULL)
{
}

View file

@ -142,7 +142,7 @@ class GuiMissionAreaUndoAction : public UndoAction
{
public:
GuiMissionAreaUndoAction( const UTF8* actionName ) : UndoAction( actionName )
GuiMissionAreaUndoAction( const UTF8* actionName ) : UndoAction( actionName ), mMissionAreaEditor(NULL), mObjId(NULL)
{
}

View file

@ -773,7 +773,7 @@ ConsoleDocClass( TerrainSmoothAction,
);
TerrainSmoothAction::TerrainSmoothAction()
: UndoAction( "Terrain Smoothing" )
: UndoAction("Terrain Smoothing"), mFactor(1.0), mSteps(1), mTerrainId(NULL)
{
}
@ -836,4 +836,4 @@ void TerrainSmoothAction::redo()
// Tell the terrain to update itself.
terrain->updateGrid( Point2I::Zero, Point2I::Max, true );
}
}

View file

@ -211,7 +211,7 @@ class ScaleHeightAction : public TerrainAction
class BrushAdjustHeightAction : public TerrainAction
{
public:
BrushAdjustHeightAction(TerrainEditor * editor) : TerrainAction(editor){}
BrushAdjustHeightAction(TerrainEditor* editor) : TerrainAction(editor) { mPreviousZ = 0.0f; }
StringTableEntry getName(){return("brushAdjustHeight");}
void process(Selection * sel, const Gui3DMouseEvent & event, bool selChanged, Type type);

View file

@ -219,6 +219,7 @@ ConsoleDocClass( InspectorFieldUndoAction,
InspectorFieldUndoAction::InspectorFieldUndoAction()
{
mInspector = NULL;
mObjId = 0;
mField = NULL;
mSlotName = StringTable->EmptyString();

View file

@ -133,6 +133,7 @@ class WorldEditor : public EditTSCtrl
WorldEditorUndoAction( const UTF8* actionName ) : UndoAction( actionName )
{
mWorldEditor = NULL;
}
WorldEditor *mWorldEditor;