aboutsummaryrefslogtreecommitdiffstats
path: root/src/particles/qquickparticlesystem_p.h
diff options
context:
space:
mode:
authorMichael Brasser <mbrasser@ford.com>2021-01-27 08:34:44 -0600
committerMichael Brasser <michael.brasser@live.com>2021-02-06 14:31:25 +0000
commite3cb305a6a19bf394c1068a7e483e1c95e11c22b (patch)
tree16ec369cc593ca7852b0ce8e0a8e1d996fcc32b1 /src/particles/qquickparticlesystem_p.h
parentd0b1bef8b889ab852eaf906fdc9cd4219238872e (diff)
Do less work when there are no active ImageParticle particles
Don't mark geometry and material as dirty if there is nothing to change. Pick-to: 6.1 6.0 5.15 Task-number: QTBUG-41867 Change-Id: I016d2d76f4ebf731f5bfc931ba616ee5d074bc65 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/particles/qquickparticlesystem_p.h')
-rw-r--r--src/particles/qquickparticlesystem_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/particles/qquickparticlesystem_p.h b/src/particles/qquickparticlesystem_p.h
index d991257452..2f2e10d264 100644
--- a/src/particles/qquickparticlesystem_p.h
+++ b/src/particles/qquickparticlesystem_p.h
@@ -205,6 +205,8 @@ public:
return m_size;
}
+ bool isActive() { return freeList.count() > 0; }
+
QString name() const;
void setSize(int newSize);