From 2d98f4204e5348852560ef305c10546537f4d0cb Mon Sep 17 00:00:00 2001 From: HellAholic Date: Tue, 28 Jul 2026 10:24:04 +0200 Subject: [PATCH] Allow Python callers to set mesh data on Savitar scene nodes getMeshData() became const in libSavitar to enforce read-only access through the getter. Expose the existing setMeshData() via the SIP binding so Python code can correctly write mesh data through the dedicated setter instead of mutating the getter's return value. (TLDR: Should allow saving 3mf files and copying the models) --- python/SceneNode.sip | 1 + 1 file changed, 1 insertion(+) diff --git a/python/SceneNode.sip b/python/SceneNode.sip index 2229f97..b0f2df1 100644 --- a/python/SceneNode.sip +++ b/python/SceneNode.sip @@ -11,6 +11,7 @@ public: virtual ~SceneNode(); const MeshData& getMeshData() const; + void setMeshData(const MeshData& mesh_data); const std::vector& getChildren() const;