mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-27 07:15:37 +00:00
uninitialized variables-environment and forrest
This commit is contained in:
parent
2c1508c169
commit
1efb687867
20 changed files with 74 additions and 34 deletions
|
|
@ -67,6 +67,7 @@ GuiMeshRoadEditorCtrl::GuiMeshRoadEditorCtrl()
|
|||
mMovePointMode("MeshRoadEditorMoveMode"),
|
||||
mScalePointMode("MeshRoadEditorScaleMode"),
|
||||
mRotatePointMode("MeshRoadEditorRotateMode"),
|
||||
mSavedDrag(false),
|
||||
mIsDirty( false ),
|
||||
mRoadSet( NULL ),
|
||||
mSelNode( -1 ),
|
||||
|
|
@ -82,7 +83,7 @@ GuiMeshRoadEditorCtrl::GuiMeshRoadEditorCtrl()
|
|||
mHoverSplineColor( 255,0,0,255 ),
|
||||
mSelectedSplineColor( 0,255,0,255 ),
|
||||
mHoverNodeColor( 255,255,255,255 ),
|
||||
mHasCopied( false )
|
||||
mHasCopied( false )
|
||||
{
|
||||
mMaterialName[Top] = StringTable->insert("DefaultRoadMaterialTop");
|
||||
mMaterialName[Bottom] = StringTable->insert("DefaultRoadMaterialOther");
|
||||
|
|
|
|||
|
|
@ -159,6 +159,9 @@ class GuiMeshRoadEditorUndoAction : public UndoAction
|
|||
|
||||
GuiMeshRoadEditorUndoAction( const UTF8* actionName ) : UndoAction( actionName )
|
||||
{
|
||||
mEditor = NULL;
|
||||
mObjId = 0;
|
||||
mMetersPerSegment = 1.0f;
|
||||
}
|
||||
|
||||
GuiMeshRoadEditorCtrl *mEditor;
|
||||
|
|
|
|||
|
|
@ -84,6 +84,7 @@ GuiRiverEditorCtrl::GuiRiverEditorCtrl()
|
|||
mStartHeight = -1.0f;
|
||||
mStartX = 0;
|
||||
|
||||
mSavedDrag = false;
|
||||
mIsDirty = false;
|
||||
|
||||
mNodeHalfSize.set(4,4);
|
||||
|
|
|
|||
|
|
@ -181,6 +181,10 @@ class GuiRiverEditorUndoAction : public UndoAction
|
|||
|
||||
GuiRiverEditorUndoAction( const UTF8* actionName ) : UndoAction( actionName )
|
||||
{
|
||||
mRiverEditor = NULL;
|
||||
mObjId = 0;
|
||||
mMetersPerSegment = 1.0f;
|
||||
mSegmentsPerBatch = 10;
|
||||
}
|
||||
|
||||
GuiRiverEditorCtrl *mRiverEditor;
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@ GuiRoadEditorCtrl::GuiRoadEditorCtrl()
|
|||
mSelectedSplineColor.set( 0,255,0,255 );
|
||||
mHoverNodeColor.set( 255,255,255,255 );
|
||||
|
||||
mSavedDrag = false;
|
||||
mIsDirty = false;
|
||||
|
||||
mMaterialName = StringTable->insert("DefaultDecalRoadMaterial");
|
||||
|
|
|
|||
|
|
@ -146,6 +146,11 @@ class GuiRoadEditorUndoAction : public UndoAction
|
|||
|
||||
GuiRoadEditorUndoAction( const UTF8* actionName ) : UndoAction( actionName )
|
||||
{
|
||||
mRoadEditor = NULL;
|
||||
mObjId = 0;
|
||||
mBreakAngle = 3.0f;
|
||||
mSegmentsPerBatch = 0;
|
||||
mTextureLength = 0.0f;
|
||||
}
|
||||
|
||||
GuiRoadEditorCtrl *mRoadEditor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue