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
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-02-06 15:41:06 +0000
commit9b6869b35dedbbe412342c6d7d9c450ee1c5f45d (patch)
treeb533f2cd2c723e00038d2e5cfeda87f9d7e4f126 /src/particles/qquickparticlesystem_p.h
parentf89ee2c9aeea725aee137a76347479d2f0daaf21 (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. Task-number: QTBUG-41867 Change-Id: I016d2d76f4ebf731f5bfc931ba616ee5d074bc65 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> (cherry picked from commit e3cb305a6a19bf394c1068a7e483e1c95e11c22b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
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);