// Observe target proxy and create/destroy notification scene object accordingly.
mProxy = dynamic_cast<ProxyObject*>( &GetImplementation(target.object) );
- mPropertyType = mProxy->GetPropertyType(mProxyPropertyIndex);
-
- int internalComponentIndex = mProxy->GetPropertyComponentIndex(mProxyPropertyIndex);
- if( internalComponentIndex != Property::INVALID_COMPONENT_INDEX )
- {
- // override the one passed in
- mComponentIndex = internalComponentIndex;
- }
- if(mComponentIndex != Property::INVALID_COMPONENT_INDEX)
+ if ( mProxy )
{
- Property::Type type = mProxy->GetPropertyType(mProxyPropertyIndex);
- if( type == Property::VECTOR2
- || type == Property::VECTOR3
- || type == Property::VECTOR4 )
+ mPropertyType = mProxy->GetPropertyType(mProxyPropertyIndex);
+
+ int internalComponentIndex = mProxy->GetPropertyComponentIndex(mProxyPropertyIndex);
+ if( internalComponentIndex != Property::INVALID_COMPONENT_INDEX )
{
- mPropertyType = Property::FLOAT;
+ // override the one passed in
+ mComponentIndex = internalComponentIndex;
+ }
+ if(mComponentIndex != Property::INVALID_COMPONENT_INDEX)
+ {
+ Property::Type type = mProxy->GetPropertyType(mProxyPropertyIndex);
+ if( type == Property::VECTOR2
+ || type == Property::VECTOR3
+ || type == Property::VECTOR4 )
+ {
+ mPropertyType = Property::FLOAT;
+ }
}
- }
- // Check if target scene-object already present, and if so create our notification
- // scene-object
- if ( mProxy )
- {
+ // Check if target scene-object already present, and if so create our notification
+ // scene-object
const SceneGraph::PropertyOwner* object = mProxy->GetSceneObject();
-
if (object)
{
CreateSceneObject();
std::string::const_reverse_iterator iter = filename.rbegin();
enum { SUFFIX, HASH, HASH_DOT, DONE } state = SUFFIX;
- while(iter < filename.rend() && state != DONE)
+ while(iter < filename.rend())
{
switch(state)
{
}
break;
}
+
+ // Satisfy prevnet
+ if( state == DONE )
+ {
+ break;
+ }
+
iter++;
}
return match;
SetTextureCoords( vertexIndex, property.Get<Vector2>() );
break;
}
- default:
- {
- DALI_ASSERT_ALWAYS(false && "AnimatableMesh property index out of range"); // should not come here
- break;
- }
}
}
value = GetCurrentTextureCoords(vertexIndex);
break;
}
- default:
- {
- DALI_ASSERT_ALWAYS(false && "AnimatableMesh property index out of range"); // should not come here
- break;
- }
}
return value;
case Dali::AnimatableVertex::TEXTURE_COORDS:
property = &mSceneObject->mVertices[vertexIndex].textureCoords;
break;
-
- default:
- DALI_ASSERT_DEBUG( 0 && "Index out of bounds" );
- break;
}
}
case Dali::AnimatableVertex::TEXTURE_COORDS:
property = &mSceneObject->mVertices[vertexIndex].textureCoords;
break;
-
- default:
- break;
}
}