- if( Property::INVALID_INDEX == index )
- {
- actor.RegisterProperty( key, value, Property::READ_WRITE );
- }
- else
- {
- actor.SetProperty( index, value );
- }
+ // Register/Set property.
+ actor.RegisterProperty( key, value, Property::READ_WRITE );