summaryrefslogtreecommitdiffstats
path: root/src/runtime/q3dsuippresentation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/q3dsuippresentation.cpp')
-rw-r--r--src/runtime/q3dsuippresentation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/q3dsuippresentation.cpp b/src/runtime/q3dsuippresentation.cpp
index 56f97a1..5ab3fd6 100644
--- a/src/runtime/q3dsuippresentation.cpp
+++ b/src/runtime/q3dsuippresentation.cpp
@@ -3532,7 +3532,8 @@ Q3DSPropertyChange Q3DSModelNode::setCustomMesh(Q3DSGeometry *geom)
{
if (m_customMesh != geom)
delete m_customMesh;
-
+ // Update attributes so that qt3d has up-to-date parameters.
+ Q3DSMeshLoader::loadMesh(*geom, &m_customMeshMapping);
m_customMesh = geom; // takes ownership
// like setMesh but note that the m_mesh_unresolved value does not change