Merge pull request #1386 from Azaezel/alpha41/oninspectDBFilter

add a datablock namespace hook for onInspect
This commit is contained in:
Brian Roberts 2025-02-15 20:26:55 -06:00 committed by GitHub
commit bb1cd32838
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}