mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 14:00:39 +00:00
Merge pull request #1386 from Azaezel/alpha41/oninspectDBFilter
add a datablock namespace hook for onInspect
This commit is contained in:
commit
bb1cd32838
1 changed files with 7 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue