Fix a regression from an (old) optimization to avoid dirtying the scene too often 61/33861/1
authorKimmo Hoikka <kimmo.hoikka@samsung.com>
Thu, 15 Jan 2015 18:35:42 +0000 (18:35 +0000)
committerKimmo Hoikka <kimmo.hoikka@samsung.com>
Thu, 15 Jan 2015 18:35:42 +0000 (18:35 +0000)
Change-Id: I630b456ac714780e11fb35696269fd73356455ae

dali/internal/update/common/animatable-property.h

index e0d4917..386fa2c 100644 (file)
@@ -254,11 +254,11 @@ public:
    */
   void Bake(BufferIndex bufferIndex, bool value)
   {
-    // check if the value actually changed to avoid dirtying nodes unnecessarily
-    if( mValue[bufferIndex] != value )
+    // bake has to check the base value as current buffer value can be correct by constraint or something else
+    if( mBaseValue != value )
     {
-      mValue[bufferIndex] = value;
       mBaseValue = value;
+      mValue[bufferIndex] = value;
 
       OnBake();
     }