diff options
author | Christian Strømme <christian.stromme@qt.io> | 2018-09-10 13:48:15 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-09-11 08:07:24 +0000 |
commit | 41d130aa70f58189dc12fb27060f0497117ceb17 (patch) | |
tree | 49575f563d566fa91858780b06171c953a2a5554 /src/runtime/q3dsuippresentation_p.h | |
parent | 156a70ee5dcacba34039e80d2cff158348de717a (diff) |
Look-up change flags when creating animation callbacks
mapping the property change to a change flag is expensive, so look-up
the change flag when creating the animation callback, as it won't change
after that and we can just cache it for later updates.
Change-Id: I520a3be298735c55aac6e8e6e8cb2215f2c9d75e
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/runtime/q3dsuippresentation_p.h')
-rw-r--r-- | src/runtime/q3dsuippresentation_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/q3dsuippresentation_p.h b/src/runtime/q3dsuippresentation_p.h index ee1210c..9bc6b7c 100644 --- a/src/runtime/q3dsuippresentation_p.h +++ b/src/runtime/q3dsuippresentation_p.h @@ -328,7 +328,7 @@ public: virtual void resolveReferences(Q3DSUipPresentation &) { } virtual int mapChangeFlags(const Q3DSPropertyChangeList &changeList) const; - void notifyPropertyChanges(const Q3DSPropertyChangeList &changeList); + void notifyPropertyChanges(const Q3DSPropertyChangeList &changeList, int changeFlags = -1); bool isNode() const { return m_type >= FirstNodeType; } |