Fix crash issue when SetProperty is called with an invalid type 32/175832/10
authorPaul Wisbey <p.wisbey@samsung.com>
Thu, 12 Apr 2018 16:25:34 +0000 (17:25 +0100)
committerPaul Wisbey <p.wisbey@samsung.com>
Mon, 16 Apr 2018 10:53:15 +0000 (10:53 +0000)
Previously this would result in a crash, since the PropertyMetadata
would be overwritten with the incorrect type of Property::Value

    float uRadius( 5.0f );
    actor.RegisterProperty( "radius", uRadius );

    Property::Value propertyValue;
    propertyValue = int(1);

    Property::Index radius = actor.GetPropertyIndex( "radius" );
    actor.SetProperty( radius, propertyValue );

The crash happens after attempting to cast to the wrong type of
AnimatableProperty in Actor::SetSceneGraphProperty

Change-Id: I8d42d190f81ff97cb9667da248911ed5ae6475dc


No differences found