From 22e1a74fedf84085eec77f2c7c4a099576add519 Mon Sep 17 00:00:00 2001 From: Zhang Peng Date: Fri, 25 Feb 2022 16:22:37 +0800 Subject: [PATCH] fix transition Change-Id: I5dd3cedba88837ff7fdf90fef8dfda8edcd251f7 Signed-off-by: Zhang Peng --- rosen/modules/render_service_client/core/ui/rs_node.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rosen/modules/render_service_client/core/ui/rs_node.cpp b/rosen/modules/render_service_client/core/ui/rs_node.cpp index d907d7fc33..f7a4030954 100644 --- a/rosen/modules/render_service_client/core/ui/rs_node.cpp +++ b/rosen/modules/render_service_client/core/ui/rs_node.cpp @@ -448,17 +448,17 @@ void RSNode::SetTranslate(float translateX, float translateY, float translateZ) void RSNode::SetTranslateX(float translate) { - SET_ANIMATABLE_PROPERTY(TranslateX, translate, RSAnimatableProperty::TRANSLATE); + SET_ANIMATABLE_PROPERTY(TranslateX, translate, RSAnimatableProperty::TRANSLATE_X); } void RSNode::SetTranslateY(float translate) { - SET_ANIMATABLE_PROPERTY(TranslateY, translate, RSAnimatableProperty::TRANSLATE); + SET_ANIMATABLE_PROPERTY(TranslateY, translate, RSAnimatableProperty::TRANSLATE_Y); } void RSNode::SetTranslateZ(float translate) { - SET_ANIMATABLE_PROPERTY(TranslateZ, translate, RSAnimatableProperty::TRANSLATE); + SET_ANIMATABLE_PROPERTY(TranslateZ, translate, RSAnimatableProperty::TRANSLATE_Z); } void RSNode::SetScale(float scale)