mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +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)
|
//PrototypeClass(GuiChunkedBitmapCtrl)
|
||||||
function PrototypeClass(%classInstance)
|
function PrototypeClass(%classInstance)
|
||||||
{
|
{
|
||||||
|
if (!isObject(%classInstance)) return;
|
||||||
Canvas.pushDialog(classPrototyping);
|
Canvas.pushDialog(classPrototyping);
|
||||||
classPrototyping.fillClasslist(%classInstance);
|
classPrototyping.fillClasslist(%classInstance);
|
||||||
classPrototyping.SetNamespaceUsed(%classInstance);
|
classPrototyping.SetNamespaceUsed(%classInstance);
|
||||||
|
|
@ -24,7 +25,9 @@ function classPrototyping::fillClasslist(%this, %classInstance)
|
||||||
|
|
||||||
//get potentially scripted namespaces
|
//get potentially scripted namespaces
|
||||||
%class = %classInstance.getClassName();
|
%class = %classInstance.getClassName();
|
||||||
%prepend = %classInstance.getName();
|
%prepend = "";
|
||||||
|
if (%classInstance.getName() !$= "")
|
||||||
|
%prepend = %classInstance.getName();
|
||||||
if (%classInstance.class !$= "")
|
if (%classInstance.class !$= "")
|
||||||
%prepend = %prepend SPC %classInstance.class;
|
%prepend = %prepend SPC %classInstance.class;
|
||||||
if (%classInstance.superclass !$= "")
|
if (%classInstance.superclass !$= "")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue