mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 00:24:40 +00:00
add a datablock namespace hook for onInspect
This commit is contained in:
parent
e77c4b3a18
commit
818d76d481
1 changed files with 7 additions and 0 deletions
|
|
@ -287,3 +287,10 @@ function EditorInspectorBase::getFullFilePath( %field )
|
||||||
else
|
else
|
||||||
return makeFullPath( %fileName, getMainDotCsDir() );
|
return makeFullPath( %fileName, getMainDotCsDir() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function GameBase::onInspect(%this, %inspector)
|
||||||
|
{
|
||||||
|
Parent::onInspect(%this, %inspector);
|
||||||
|
if (%this.getDatablock().isMethod("onInspect"))
|
||||||
|
%this.getDatablock().onInspect(%this, %inspector);
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue