From b84ed7d0beb524a62070a503a40b78b77506b258 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Mon, 10 May 2021 17:26:14 +0200 Subject: Call on_object_properties_change callback when adding object to scene --- src/client/content_cao.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/client/content_cao.cpp') 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) -- cgit v1.2.3