Add on_object_add callback
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user