aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-05-10 17:26:14 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-05-10 17:26:14 +0200
commitb84ed7d0beb524a62070a503a40b78b77506b258 (patch)
tree13ed287aba0767ec9b77910c4f48731bd565f56b /src
parent26cfbda653db1b843dbe2e78b0bb642f17cd5d8d (diff)
downloaddragonfireclient-b84ed7d0beb524a62070a503a40b78b77506b258.tar.xz
Call on_object_properties_change callback when adding object to scene
Diffstat (limited to 'src')
-rw-r--r--src/client/content_cao.cpp3
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)