- break;
- }
- }
-
- // Does either it's renderer or placement actor have an associated property?
- if( iter != visuals.End() )
- {
- Actor placementActor = (*iter)->placementActor;
- if( !placementActor )
- {
- placementActor = controlImpl.Self();
- }
-
- Property::Index index = placementActor.GetPropertyIndex( propertyKey );
- if( index != Property::INVALID_INDEX )
- {
- // It's a placement actor property:
- return HandleIndex( placementActor, index );
- }
- else
- {
- // Check if it is a renderer property:
- if( placementActor.GetRendererCount() > 0 )
+ Internal::Visual::Base& visualImpl = GetImplementation(visual);
+ Renderer renderer = visualImpl.GetRenderer();
+ if( renderer )