mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +00:00
Failed to get the Scene changes for the Full template rolled up. This corrects that.
This commit is contained in:
parent
852f82b8a5
commit
8d85a56095
31 changed files with 167 additions and 68 deletions
|
|
@ -1584,7 +1584,7 @@ function ColladaImportDlg::onOK(%this)
|
|||
function ColladaImportDlg::loadLights(%this)
|
||||
{
|
||||
// Get the ID of the last object added
|
||||
%obj = MissionGroup.getObject(MissionGroup.getCount()-1);
|
||||
%obj = getRootScene().getObject(getRootScene().getCount()-1);
|
||||
|
||||
// Create a new SimGroup to hold the model and lights
|
||||
%group = new SimGroup();
|
||||
|
|
@ -1596,7 +1596,7 @@ function ColladaImportDlg::loadLights(%this)
|
|||
{
|
||||
%group.add(%obj);
|
||||
%group.bringToFront(%obj);
|
||||
MissionGroup.add(%group);
|
||||
getRootScene().add(%group);
|
||||
if (EditorTree.isVisible())
|
||||
{
|
||||
EditorTree.removeItem(EditorTree.findItemByObjectId(%obj));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue