/*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2016 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.
{
using namespace Dali::Scripting;
-extern bool SetPropertyFromNode( const TreeNode& node, Property::Value& value, const Replacement& constant );
+extern void DeterminePropertyFromNode( const TreeNode& node, Property::Value& value, const Replacement& constant );
/*
* Handles special case actor configuration (anything thats not already a property)
}
}
- // Add custom properties
- if( OptionalChild customPropertiesChild = IsChild(child, "customProperties") )
- {
- const TreeNode& customPropertiesNode = *customPropertiesChild;
- const TreeConstIter endIter = customPropertiesNode.CEnd();
- for( TreeConstIter iter = customPropertiesNode.CBegin(); endIter != iter; ++iter )
- {
- const TreeNode::KeyNodePair& keyChild = *iter;
- std::string key( keyChild.first );
-
- Property::Index index = actor.GetPropertyIndex( key );
- Property::Value value;
- if( SetPropertyFromNode( keyChild.second, value, constant ))
- {
- if( Property::INVALID_INDEX == index )
- {
- actor.RegisterProperty( key, value, Property::READ_WRITE );
- }
- else
- {
- actor.SetProperty( index, value );
- }
- }
- }
- }
-
return actor;
}