Merge "Removed bogus consts and fixed out-of-line definitions." into tizen
[platform/core/uifw/dali-core.git] / dali / internal / update / common / property-condition-step-functions.cpp
index 585f224..92110fd 100644 (file)
@@ -51,6 +51,11 @@ ConditionFunction Step::GetFunction(Property::Type valueType)
       function = EvalFloat;
       break;
     }
+    case Property::INTEGER:
+    {
+      function = EvalInteger;
+      break;
+    }
     case Property::VECTOR2:
     {
       function = EvalVector2;
@@ -100,6 +105,12 @@ bool Step::EvalFloat( const Dali::PropertyInput& value, PropertyNotification::Ra
   return Evaluate( propertyValue, arg );
 }
 
+bool Step::EvalInteger( const Dali::PropertyInput& value, PropertyNotification::RawArgumentContainer& arg )
+{
+  const float propertyValue = static_cast<float>( value.GetInteger() );
+  return Evaluate( propertyValue, arg );
+}
+
 bool Step::EvalVector2( const Dali::PropertyInput& value, PropertyNotification::RawArgumentContainer& arg )
 {
   const float propertyValue = value.GetVector2().LengthSquared();