add a datablock namespace hook for onInspect

This commit is contained in:
AzaezelX 2025-02-15 17:38:11 -06:00
parent e77c4b3a18
commit 818d76d481

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