Call on_object_properties_change callback when adding object to scene

wsc-dfc
Elias Fleckenstein 2021-05-10 17:26:14 +02:00
parent 26cfbda653
commit b84ed7d0be
1 changed files with 3 additions and 0 deletions

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)