mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
add a datablock namespace hook for onInspect
This commit is contained in:
parent
e77c4b3a18
commit
818d76d481
|
|
@ -287,3 +287,10 @@ function EditorInspectorBase::getFullFilePath( %field )
|
|||
else
|
||||
return makeFullPath( %fileName, getMainDotCsDir() );
|
||||
}
|
||||
|
||||
function GameBase::onInspect(%this, %inspector)
|
||||
{
|
||||
Parent::onInspect(%this, %inspector);
|
||||
if (%this.getDatablock().isMethod("onInspect"))
|
||||
%this.getDatablock().onInspect(%this, %inspector);
|
||||
}
|
||||
Loading…
Reference in a new issue