From 8e68c098aa74c30ba6e761b26bbafa22d002e24f Mon Sep 17 00:00:00 2001 From: Julien Heanley Date: Fri, 11 Apr 2014 10:27:52 +0100 Subject: [PATCH] (PropertyNotification) Force a property notification from step conditions everytime they return true [Issue#] N/A [Problem] [Cause] [Solution] Change-Id: Ie40c936e3ed1e3daf0b9f5fbba22ea5e4eeb9817 --- .../update/common/scene-graph-property-notification.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dali/internal/update/common/scene-graph-property-notification.cpp b/dali/internal/update/common/scene-graph-property-notification.cpp index 2fad63b..fc2e6bb 100644 --- a/dali/internal/update/common/scene-graph-property-notification.cpp +++ b/dali/internal/update/common/scene-graph-property-notification.cpp @@ -159,7 +159,7 @@ void PropertyNotification::SetNotifyMode( NotifyMode notifyMode ) bool PropertyNotification::Check( BufferIndex bufferIndex ) { - bool validityChanged = false; + bool notifyRequired = false; bool currentValid = false; if ( Property::INVALID_COMPONENT_INDEX != mComponentIndex ) @@ -176,13 +176,15 @@ bool PropertyNotification::Check( BufferIndex bufferIndex ) currentValid = mConditionFunction(input, mArguments); } - if( mValid != currentValid ) + if( mValid != currentValid + || (currentValid && ((mConditionType == PropertyCondition::Step) + || (mConditionType == PropertyCondition::VariableStep))) ) { mValid = currentValid; - validityChanged = mNotifyValidity[currentValid]; + notifyRequired = mNotifyValidity[currentValid]; } - return validityChanged; + return notifyRequired; } bool PropertyNotification::GetValidity() const -- 2.7.4