mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Merge pull request #2123 from nev7n/forestEditorFix
Fix forest editor failing to load forest
This commit is contained in:
parent
763504f275
commit
f264054405
|
|
@ -50,7 +50,7 @@ function ForestEditorGui::onActiveForestUpdated( %this, %forest, %createNew )
|
||||||
/// Called from a message box when a forest is not found.
|
/// Called from a message box when a forest is not found.
|
||||||
function ForestEditorGui::createForest( %this )
|
function ForestEditorGui::createForest( %this )
|
||||||
{
|
{
|
||||||
%forestObject = parseMissionGroupForIds("Forest", "");
|
%forestObject = trim(parseMissionGroupForIds("Forest", ""));
|
||||||
|
|
||||||
if ( isObject( %forestObject ) )
|
if ( isObject( %forestObject ) )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,7 @@ function ForestEditorPlugin::onActivated( %this )
|
||||||
//ForestEditToolbar.setVisible( true );
|
//ForestEditToolbar.setVisible( true );
|
||||||
|
|
||||||
//Get our existing forest object in our current mission if we have one
|
//Get our existing forest object in our current mission if we have one
|
||||||
%forestObject = parseMissionGroupForIds("Forest", "");
|
%forestObject = trim(parseMissionGroupForIds("Forest", ""));
|
||||||
if(isObject(%forestObject))
|
if(isObject(%forestObject))
|
||||||
{
|
{
|
||||||
ForestEditorGui.setActiveForest(%forestObject.getName());
|
ForestEditorGui.setActiveForest(%forestObject.getName());
|
||||||
|
|
@ -241,7 +241,7 @@ function ForestEditorPlugin::onSaveMission( %this, %missionFile )
|
||||||
ForestDataManager.saveDirty();
|
ForestDataManager.saveDirty();
|
||||||
|
|
||||||
//First, find out if we have an existing forest object
|
//First, find out if we have an existing forest object
|
||||||
%forestObject = parseMissionGroupForIds("Forest", "");
|
%forestObject = trim(parseMissionGroupForIds("Forest", ""));
|
||||||
|
|
||||||
if ( isObject( %forestObject ) )
|
if ( isObject( %forestObject ) )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ function ForestEditorGui::onActiveForestUpdated( %this, %forest, %createNew )
|
||||||
/// Called from a message box when a forest is not found.
|
/// Called from a message box when a forest is not found.
|
||||||
function ForestEditorGui::createForest( %this )
|
function ForestEditorGui::createForest( %this )
|
||||||
{
|
{
|
||||||
%forestObject = parseMissionGroupForIds("Forest", "");
|
%forestObject = trim(parseMissionGroupForIds("Forest", ""));
|
||||||
|
|
||||||
if ( isObject( %forestObject ) )
|
if ( isObject( %forestObject ) )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,7 @@ function ForestEditorPlugin::onActivated( %this )
|
||||||
//ForestEditToolbar.setVisible( true );
|
//ForestEditToolbar.setVisible( true );
|
||||||
|
|
||||||
//Get our existing forest object in our current mission if we have one
|
//Get our existing forest object in our current mission if we have one
|
||||||
%forestObject = parseMissionGroupForIds("Forest", "");
|
%forestObject = trim(parseMissionGroupForIds("Forest", ""));
|
||||||
if(isObject(%forestObject))
|
if(isObject(%forestObject))
|
||||||
{
|
{
|
||||||
ForestEditorGui.setActiveForest(%forestObject.getName());
|
ForestEditorGui.setActiveForest(%forestObject.getName());
|
||||||
|
|
@ -241,7 +241,7 @@ function ForestEditorPlugin::onSaveMission( %this, %missionFile )
|
||||||
ForestDataManager.saveDirty();
|
ForestDataManager.saveDirty();
|
||||||
|
|
||||||
//First, find out if we have an existing forest object
|
//First, find out if we have an existing forest object
|
||||||
%forestObject = parseMissionGroupForIds("Forest", "");
|
%forestObject = trim(parseMissionGroupForIds("Forest", ""));
|
||||||
|
|
||||||
if ( isObject( %forestObject ) )
|
if ( isObject( %forestObject ) )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue