X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fvisual-base-impl.cpp;h=288ed34951a748a52392a6fd73b67ddbcb079134;hp=004d2010f3a2331685441de03a6ad08e744ad240;hb=1d71a8f7d7abd7729aa645ad062e530958097214;hpb=564bc0be615a00d681e01d00250a0279068efcf7 diff --git a/dali-toolkit/internal/visuals/visual-base-impl.cpp b/dali-toolkit/internal/visuals/visual-base-impl.cpp index 004d201..288ed34 100644 --- a/dali-toolkit/internal/visuals/visual-base-impl.cpp +++ b/dali-toolkit/internal/visuals/visual-base-impl.cpp @@ -830,7 +830,9 @@ Property::Index Visual::Base::GetPropertyIndex(Property::Key key) // Leave keyIndex as INVALID_KEY - it can still be registered against the string key. } Property::Value value = shader.GetProperty(index); - index = mImpl->mRenderer.RegisterProperty(keyIndex, keyName, value); + + // We already know that mRenderer didn't have property. So we can assume that it is unique. + index = mImpl->mRenderer.RegisterUniqueProperty(keyIndex, keyName, value); } } return index;