aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@qt.io>2024-01-25 14:01:02 +0100
committerPaul Olav Tvete <paul.tvete@qt.io>2024-01-26 18:42:34 +0100
commit6baacad194ee4911cfef3d7407c4be6f63ba3190 (patch)
tree24619c5bb79e4d8a070b266b42f15a162ef750ac
parent87ffcd8239bac0f4adf8574948bd49f248e86b90 (diff)
Set non-intersecting flag if path has no intersections
If the path has no intersections to start with, then solveIntersections will return the path unchanged. Set the PathNonIntersecting optimization flag in that case. Pick-to: 6.7 Change-Id: I6f560c97c8722b2940d69acc0c6cfd545f86e7f2 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
-rw-r--r--src/quick/scenegraph/qsgcurveprocessor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/scenegraph/qsgcurveprocessor.cpp b/src/quick/scenegraph/qsgcurveprocessor.cpp
index 012c7b0747..2136e1acc9 100644
--- a/src/quick/scenegraph/qsgcurveprocessor.cpp
+++ b/src/quick/scenegraph/qsgcurveprocessor.cpp
@@ -985,6 +985,7 @@ bool QSGCurveProcessor::solveIntersections(QQuadPath &path, bool alwaysReorder)
if (intersections.isEmpty() && !alwaysReorder) {
qCDebug(lcSGCurveIntersectionSolver) << "Returning the path unchanged.";
+ path.setHint(QQuadPath::PathNonIntersecting);
return false;
}