X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fvisuals%2Fborder%2Fborder-visual.cpp;h=b60cc276b093437cd18b360b1b355300ba7c3782;hp=9e977fc889b0eef728a174a1b895022041329d4a;hb=1d71a8f7d7abd7729aa645ad062e530958097214;hpb=424acaeb550ba051f844c8104267bb1f68a5451e diff --git a/dali-toolkit/internal/visuals/border/border-visual.cpp b/dali-toolkit/internal/visuals/border/border-visual.cpp index 9e977fc..b60cc27 100644 --- a/dali-toolkit/internal/visuals/border/border-visual.cpp +++ b/dali-toolkit/internal/visuals/border/border-visual.cpp @@ -129,12 +129,18 @@ void BorderVisual::DoSetProperty(Dali::Property::Index index, void BorderVisual::DoSetOnScene(Actor& actor) { - mBorderColorIndex = mImpl->mRenderer.RegisterProperty(Toolkit::BorderVisual::Property::COLOR, COLOR_NAME, mBorderColor); + if(mBorderColorIndex == Property::INVALID_INDEX) + { + mBorderColorIndex = mImpl->mRenderer.RegisterUniqueProperty(Toolkit::BorderVisual::Property::COLOR, COLOR_NAME, mBorderColor); + } if(mBorderColor.a < 1.f || mAntiAliasing) { mImpl->mRenderer.SetProperty(Renderer::Property::BLEND_MODE, BlendMode::ON); } - mBorderSizeIndex = mImpl->mRenderer.RegisterProperty(Toolkit::BorderVisual::Property::SIZE, SIZE_NAME, mBorderSize); + if(mBorderSizeIndex == Property::INVALID_INDEX) + { + mBorderSizeIndex = mImpl->mRenderer.RegisterUniqueProperty(Toolkit::BorderVisual::Property::SIZE, SIZE_NAME, mBorderSize); + } actor.AddRenderer(mImpl->mRenderer);