Add on_object_add callback

This commit is contained in:
Elias Fleckenstein
2021-05-11 19:15:23 +02:00
parent 4f613bbf51
commit b7abc8df28
5 changed files with 24 additions and 2 deletions

View File

@@ -829,6 +829,9 @@ void GenericCAO::addToScene(ITextureSource *tsrc)
setNodeLight(m_last_light);
updateMeshCulling();
if (m_client->modsLoaded())
m_client->getScript()->on_object_add(m_id);
if (m_client->modsLoaded())
m_client->getScript()->on_object_properties_change(m_id);
}