Call on_object_properties_change callback when adding object to scene

This commit is contained in:
Elias Fleckenstein 2021-05-10 17:26:14 +02:00
parent 26cfbda653
commit b84ed7d0be

View File

@ -828,6 +828,9 @@ void GenericCAO::addToScene(ITextureSource *tsrc)
updateAttachments();
setNodeLight(m_last_light);
updateMeshCulling();
if (m_client->modsLoaded())
m_client->getScript()->on_object_properties_change(m_id);
}
void GenericCAO::updateLight(u32 day_night_ratio)