mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Merge pull request #1386 from Azaezel/alpha41/oninspectDBFilter
add a datablock namespace hook for onInspect
This commit is contained in:
commit
bb1cd32838
|
|
@ -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