aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@qt.io>2023-09-06 10:37:34 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-09-12 10:03:17 +0000
commite070c48ad4679b0328affb7d2a7b5dc28936bfe7 (patch)
treedf022925eb39187cf64065a4b8f370b0092c8233
parent80a512740d250edbb54dffbc072fe7404b7ea4bf (diff)
Curve renderer: update material when fill changes
Fixes a bug where shapes would continue to be batched even if one of them were changed. Change-Id: I1c7f6527668f6cc617862e41463a0f470edb89c7 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io> (cherry picked from commit 6f8f15a7a08416ef98485d0f9e6dcd3afa968b1f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/quickshapes/qquickshapecurvenode_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/quickshapes/qquickshapecurvenode_p.h b/src/quickshapes/qquickshapecurvenode_p.h
index cce6052cee..bf9c49cab3 100644
--- a/src/quickshapes/qquickshapecurvenode_p.h
+++ b/src/quickshapes/qquickshapecurvenode_p.h
@@ -28,7 +28,10 @@ public:
void setColor(QColor col)
{
+ if (m_color == col)
+ return;
m_color = col;
+ updateMaterial();
}
QColor color() const