mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-21 15:43:45 +00:00
add safeties
This commit is contained in:
parent
c10808873d
commit
4b86e112c8
1 changed files with 4 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ function classPrototyping::onSleep(%this)
|
|||
//PrototypeClass(GuiChunkedBitmapCtrl)
|
||||
function PrototypeClass(%classInstance)
|
||||
{
|
||||
if (!isObject(%classInstance)) return;
|
||||
Canvas.pushDialog(classPrototyping);
|
||||
classPrototyping.fillClasslist(%classInstance);
|
||||
classPrototyping.SetNamespaceUsed(%classInstance);
|
||||
|
|
@ -24,7 +25,9 @@ function classPrototyping::fillClasslist(%this, %classInstance)
|
|||
|
||||
//get potentially scripted namespaces
|
||||
%class = %classInstance.getClassName();
|
||||
%prepend = %classInstance.getName();
|
||||
%prepend = "";
|
||||
if (%classInstance.getName() !$= "")
|
||||
%prepend = %classInstance.getName();
|
||||
if (%classInstance.class !$= "")
|
||||
%prepend = %prepend SPC %classInstance.class;
|
||||
if (%classInstance.superclass !$= "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue