mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-03 12:30:31 +00:00
hide particleemitter dupes
if you have a selected particleemitternode when opening the particle editor, don't show the edit-copy one
This commit is contained in:
parent
52b5ab197c
commit
61b7813f11
1 changed files with 7 additions and 0 deletions
|
|
@ -222,6 +222,13 @@ function ParticleEditor::resetEmitterNode( %this )
|
|||
|
||||
ParticleEditor.updateEmitterNode();
|
||||
}
|
||||
if (EWorldEditor.getSelectionSize()>0)
|
||||
{
|
||||
%obj = EWorldEditor.getSelectedObject(0);
|
||||
if (%obj.isMemberOfClass("ParticleEmitterNode"))
|
||||
$ParticleEditor::emitterNode.sethidden(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue