switch( valueType )
{
- case Property::FLOAT:
+ case Property::INTEGER:
{
- function = EvalFloat;
+ function = EvalInteger;
break;
}
- case Property::INTEGER:
+ case Property::UNSIGNED_INTEGER:
{
- function = EvalInteger;
+ function = EvalUnsignedInteger;
+ break;
+ }
+ case Property::FLOAT:
+ {
+ function = EvalFloat;
break;
}
case Property::VECTOR2:
return false;
}
-bool VariableStep::EvalFloat( const Dali::PropertyInput& value, PropertyNotification::RawArgumentContainer& arg )
+bool VariableStep::EvalInteger( const Dali::PropertyInput& value, PropertyNotification::RawArgumentContainer& arg )
{
- const float propertyValue = value.GetFloat();
+ const float propertyValue = static_cast<float>( value.GetInteger() );
return Evaluate( propertyValue, arg );
}
-bool VariableStep::EvalInteger( const Dali::PropertyInput& value, PropertyNotification::RawArgumentContainer& arg )
+bool VariableStep::EvalUnsignedInteger( const Dali::PropertyInput& value, PropertyNotification::RawArgumentContainer& arg )
{
- const float propertyValue = static_cast<float>( value.GetInteger() );
+ const float propertyValue = static_cast<float>( value.GetUnsignedInteger() );
+ return Evaluate( propertyValue, arg );
+}
+
+bool VariableStep::EvalFloat( const Dali::PropertyInput& value, PropertyNotification::RawArgumentContainer& arg )
+{
+ const float propertyValue = value.GetFloat();
return Evaluate( propertyValue, arg );
}