/*
- * Copyright (c) 2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
{
Property::Value value( Property::ARRAY );
Property::Array* array = value.GetArray();
- DALI_ASSERT_DEBUG( array ); // should always exist in this case
size_t count( mValue.Size() );
- array->Reserve( count );
- for( size_t i( 0 ); i != count; ++i )
+
+ if( array )
{
- array->PushBack( mValue[i] );
+ array->Reserve( count );
+ for( size_t i( 0 ); i != count; ++i )
+ {
+ array->PushBack( mValue[i] );
+ }
}
return value;
}
{
Property::Value value( Property::ARRAY );
Property::Array* array = value.GetArray();
- DALI_ASSERT_DEBUG( array ); // should always exist in this case
- size_t count( mValue.Size() );
- array->Reserve( count );
- for( size_t i( 0 ); i != count; ++i )
+ size_t count( mProgress.Size() );
+
+ if( array )
{
- array->PushBack( mProgress[i] );
+ array->Reserve( count );
+ for( size_t i( 0 ); i != count; ++i )
+ {
+ array->PushBack( mProgress[i] );
+ }
}
return value;
}
return Property::Value();
}
+Property::Value LinearConstrainer::GetDefaultPropertyCurrentValue( Property::Index index ) const
+{
+ return GetDefaultProperty( index ); // Event-side only properties
+}
+
void LinearConstrainer::SetDefaultProperty( Property::Index index, const Property::Value& propertyValue )
{
const Property::Array* array = propertyValue.GetArray();