diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-05-10 17:26:14 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-05-10 17:26:14 +0200 |
commit | b84ed7d0beb524a62070a503a40b78b77506b258 (patch) | |
tree | 13ed287aba0767ec9b77910c4f48731bd565f56b | |
parent | 26cfbda653db1b843dbe2e78b0bb642f17cd5d8d (diff) | |
download | dragonfireclient-b84ed7d0beb524a62070a503a40b78b77506b258.tar.xz |
Call on_object_properties_change callback when adding object to scene
-rw-r--r-- | src/client/content_cao.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/content_cao.cpp b/src/client/content_cao.cpp index 6ab83361a..ea034f629 100644 --- a/src/client/content_cao.cpp +++ b/src/client/content_cao.cpp @@ -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) |