[4.0] Fix UpdateRender if statement. 42/165742/2
authorminho.sun <minho.sun@samsung.com>
Wed, 3 Jan 2018 12:55:12 +0000 (21:55 +0900)
committerminho.sun <minho.sun@samsung.com>
Wed, 3 Jan 2018 23:52:01 +0000 (08:52 +0900)
commit239a4d5e714824b9ba72abc3c3db2fd4330c0632
treebeeceecd6d1107c4d1fea4e2169228d8eca0592c
parent9817d4be0f95105f1cc8c5a211296da86af6d471
[4.0] Fix UpdateRender if statement.

Currently, TextVisual makes crash when doing UpdateRender because mAnimatableTextColorPropertyIndex is set to Property::INVALID_INDEX and this property only can be set by TextLabel.

TextVisual can be exist in other control like Buttons so change if
statement which uses mAnimatableTextColorPropertyIndex to get alpha
value.

Change-Id: I5ea04461584126e69490ccc513434200f5751755
Signed-off-by: minho.sun <minho.sun@samsung.com>
dali-toolkit/internal/visuals/text/text-visual.cpp