summaryrefslogtreecommitdiffstats
path: root/src/Runtime
diff options
context:
space:
mode:
authorAntti Määttä <antti.maatta@qt.io>2019-04-26 12:51:52 +0300
committerAntti Määttä <antti.maatta@qt.io>2019-04-30 08:58:29 +0000
commit701db3c7f5c4c5288b10ec3f2edb3e761d1947dd (patch)
treeae02b752096643881c04471b85679fc995222016 /src/Runtime
parent49e97e72bc183a1b5ec69e06d4129a4b04f85b60 (diff)
Do not update behavior script properties always
Only update them when they have changed. Change-Id: I77e87640c62e1289fec980a7d1737803d49e762a Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Runtime')
-rw-r--r--src/Runtime/Source/runtime/q3dsqmlscript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Runtime/Source/runtime/q3dsqmlscript.cpp b/src/Runtime/Source/runtime/q3dsqmlscript.cpp
index 6cc249b7..b73417e6 100644
--- a/src/Runtime/Source/runtime/q3dsqmlscript.cpp
+++ b/src/Runtime/Source/runtime/q3dsqmlscript.cpp
@@ -132,7 +132,7 @@ void Q3DSQmlScript::updateProperties()
using namespace qt3ds::foundation;
using namespace qt3ds::runtime::element;
- if (!m_behavior.GetActive())
+ if (!m_behavior.GetActive() || !m_behavior.IsDirty())
return;
unsigned int numProperties = m_behavior.GetNumProperties();