diff --git a/Engine/source/gui/controls/guiTreeViewCtrl.cpp b/Engine/source/gui/controls/guiTreeViewCtrl.cpp index 2a98d9228..a1fa30412 100644 --- a/Engine/source/gui/controls/guiTreeViewCtrl.cpp +++ b/Engine/source/gui/controls/guiTreeViewCtrl.cpp @@ -1035,7 +1035,7 @@ void GuiTreeViewCtrl::_destroyTree() { Item *pFreeItem = mItems[ i ]; if( pFreeItem != NULL ) - _destroyItem(pFreeItem); + delete pFreeItem; } mItems.clear(); diff --git a/Engine/source/renderInstance/renderProbeMgr.cpp b/Engine/source/renderInstance/renderProbeMgr.cpp index f4415d939..9b6aff737 100644 --- a/Engine/source/renderInstance/renderProbeMgr.cpp +++ b/Engine/source/renderInstance/renderProbeMgr.cpp @@ -748,8 +748,10 @@ void RenderProbeMgr::render( SceneRenderState *state ) String useDebugContrib = Con::getVariable("$Probes::showProbeContrib", "0"); mProbeArrayEffect->setShaderMacro("DEBUGVIZ_CONTRIB", useDebugContrib); - if(mHasSkylight && mEffectiveProbeCount == 0) + if(mSkylightCubemapIdx != -1 && mEffectiveProbeCount == 0) mProbeArrayEffect->setShaderMacro("SKYLIGHT_ONLY", "1"); + else + mProbeArrayEffect->setShaderMacro("SKYLIGHT_ONLY", "0"); mProbeArrayEffect->setTexture(3, mBRDFTexture); mProbeArrayEffect->setCubemapArrayTexture(4, mPrefilterArray); diff --git a/Templates/BaseGame/game/tools/guiEditor/scripts/guiEditor.ed.cs b/Templates/BaseGame/game/tools/guiEditor/scripts/guiEditor.ed.cs index e68c2e3db..0bb198023 100644 --- a/Templates/BaseGame/game/tools/guiEditor/scripts/guiEditor.ed.cs +++ b/Templates/BaseGame/game/tools/guiEditor/scripts/guiEditor.ed.cs @@ -74,22 +74,14 @@ function toggleGuiEditor( %make ) { if( EditorIsActive() && !GuiEditor.toggleIntoEditorGui ) toggleEditor( true ); - - if( !isObject( GuiEditCanvas ) ) - new GuiControl( GuiEditCanvas, EditorGuiGroup ); - if( GuiEditorIsActive() ) + if( $InGuiEditor || GuiEditorIsActive() ) { GuiEditor.close(); } else { GuiEditor.open(); - - // Cancel the scheduled event to prevent - // the level from cycling after it's duration - // has elapsed. - cancel($Game::Schedule); } // Cancel the scheduled event to prevent @@ -115,6 +107,9 @@ package GuiEditor_BlockDialogs function GuiEditor::open(%this) { + if( !isObject( GuiEditCanvas ) ) + new GuiControl( GuiEditCanvas, EditorGuiGroup ); + GuiEditCanvas.onCreateMenu(); GuiEditContent(Canvas.getContent()); diff --git a/Templates/BaseGame/game/tools/guiEditor/scripts/guiEditorCanvas.ed.cs b/Templates/BaseGame/game/tools/guiEditor/scripts/guiEditorCanvas.ed.cs index aa0c4686f..b4025a14d 100644 --- a/Templates/BaseGame/game/tools/guiEditor/scripts/guiEditorCanvas.ed.cs +++ b/Templates/BaseGame/game/tools/guiEditor/scripts/guiEditorCanvas.ed.cs @@ -31,7 +31,7 @@ function GuiEditCanvas::onAdd( %this ) { // %this.setWindowTitle("Torque Gui Editor"); - %this.onCreateMenu(); + //%this.onCreateMenu(); } //--------------------------------------------------------------------------------------------- diff --git a/Templates/BaseGame/game/tools/main.cs b/Templates/BaseGame/game/tools/main.cs index 179da9191..162404fb2 100644 --- a/Templates/BaseGame/game/tools/main.cs +++ b/Templates/BaseGame/game/tools/main.cs @@ -120,17 +120,6 @@ package Tools call( %initializeFunction ); } - //Now, go through and load any tool-group modules - ModuleDatabase.setModuleExtension("module"); - - //Any common tool modules - ModuleDatabase.scanModules( "tools", false ); - ModuleDatabase.LoadGroup( "Tool" ); - - //Do any tools that come in with a gameplay package. These are usually specialized tools - //ModuleDatabase.scanModules( "data", false ); - //ModuleDatabase.LoadGroup( "Tool" ); - // Popuplate the default SimObject icons that // are used by the various editors. EditorIconRegistry::loadFromPath( "tools/classIcons/" ); @@ -150,6 +139,8 @@ package Tools popInstantGroup(); $instantGroup = MissionCleanup; pushInstantGroup(); + + $Tools::loaded = true; } function startToolTime(%tool) diff --git a/Templates/BaseGame/game/tools/settings.xml b/Templates/BaseGame/game/tools/settings.xml index 92139fc39..69b1e8ba6 100644 --- a/Templates/BaseGame/game/tools/settings.xml +++ b/Templates/BaseGame/game/tools/settings.xml @@ -1,178 +1,147 @@ - - AIPlayer - - - 72 70 68 255 - 234 232 230 255 - 59 58 57 255 - 255 255 255 255 - 72 70 68 255 - 240 240 240 255 - 178 175 172 255 - 236 234 232 255 - 59 58 57 255 - 50 49 48 255 - 50 49 48 255 - 50 49 48 255 - 37 36 35 255 - 32 31 30 255 - 17 16 15 255 - 43 43 43 255 - 96 94 92 255 - 100 98 96 255 - lowerHeight 1.000000 0.833333 0.666667 0.500000 0.333333 0.166667 0.000000 - 0.1 - 0 - 1.000000 0.833333 0.666667 0.500000 0.333333 0.166667 0.000000 90 1 - 100 - 10 - 50 + 1.000000 0.833333 0.666667 0.500000 0.333333 0.166667 0.000000 + 0.1 1 + 50 + 10 + 100 + 0 + 1 + 1 + 40 40 ellipse 40 40 - 1 - 40 40 - 1 - - - - 50 - 40 - WorldEditorInspectorPlugin - 6 - 1 - 0 - AssetWork_Debug.exe - screenCenter - - 2 - 1 - 0 - 100 - 0 - 0 - 1 - - - 0 255 0 255 - 100 100 100 255 - 0 0 255 255 - 255 255 0 255 - 255 0 0 255 - 255 255 0 255 - 255 255 255 255 - - - ../../../Documentation/Official Documentation.html - ../../../Documentation/Torque 3D - Script Manual.chm - http://www.garagegames.com/products/torque-3d/documentation/user - http://www.garagegames.com/products/torque-3d/forums - - - 1 - 0 - 255 - 20 - 8 - - - 1 - 1 - 1 - 1 - 1 - - - 102 102 102 100 - 51 51 51 100 - 0 - 255 255 255 100 - 1 - - - 180 180 180 255 - 255 255 255 255 - 50 50 50 255 - 48 48 48 255 - 215 215 215 255 - - - tools/worldEditor/images/LockedHandle - tools/worldEditor/images/DefaultHandle - tools/worldEditor/images/SelectHandle - - - - data/FPSGameplay/levels - - - 5 - - - 25 - - - - - 15 - 0 - 0.8 - 100 - 0.8 - 0 - 1 - - 500 - 0 - 10 10 10 - 0 - 255 255 255 20 - 0 - 0 255 0 255 255 255 255 255 255 0 0 255 - 5 0 0 1 + 5 10 + 0 255 0 255 + + + 72 70 68 255 + 59 58 57 255 + 43 43 43 255 + 240 240 240 255 + 236 234 232 255 + 32 31 30 255 + 72 70 68 255 + 37 36 35 255 + 17 16 15 255 + 96 94 92 255 + 50 49 48 255 + 255 255 255 255 + 178 175 172 255 + 59 58 57 255 + 234 232 230 255 + 50 49 48 255 + 50 49 48 255 + 100 98 96 255 + + + AssetWork_Debug.exe + screenCenter + 50 + 0 + 6 + 40 + WorldEditorInspectorPlugin + 1 + + 1 + 51 51 51 100 + 255 255 255 100 + 102 102 102 100 + 0 + + + 1 + 1 + 1 + 1 + 1 + + + tools/worldEditor/images/DefaultHandle + tools/worldEditor/images/LockedHandle + tools/worldEditor/images/SelectHandle + + + 100 100 100 255 + 255 255 0 255 + 0 0 255 255 + 255 255 0 255 + 255 255 255 255 + 0 255 0 255 + 255 0 0 255 + + + 255 + 0 + 1 + 8 + 20 + + + 50 50 50 255 + 180 180 180 255 + 255 255 255 255 + 215 215 215 255 + 48 48 48 255 + + + http://www.garagegames.com/products/torque-3d/documentation/user + ../../../Documentation/Torque 3D - Script Manual.chm + ../../../Documentation/Official Documentation.html + http://www.garagegames.com/products/torque-3d/forums + + + 1 + 2 + 0 + 100 + 0 + 0 + 1 + - tools/gui 1024 768 - - 0 - 0 - 0 - - - 1 - 1 - + tools/gui 1 0 - 1 1 - 2 - 1 - 1 8 + 1 + 1 + 1 + 2 + + + 0 + 0 + 0 + + + 1 + 1 - ../../../Documentation/Torque 3D - Script Manual.chm ../../../Documentation/Official Documentation.html + ../../../Documentation/Torque 3D - Script Manual.chm http://www.garagegames.com/products/torque-3d/documentation/user @@ -182,7 +151,38 @@ 0 + + 100 + 15 + 0.8 + 0 + 0 + 0.8 + 1 + + 500 + 10 10 10 + 0 + 255 255 255 20 + 0 + 0 + + + + data/FPSGameplay/levels + + + 25 + + + 5 + + + Grid_512_Orange + + AIPlayer +