From 055daed3f3349a44f94651e51490678c7f0ae0d0 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Mon, 17 Jul 2023 16:52:20 +0900 Subject: [PATCH] common shape: add an internal method to forcibly update the properties. This internal access assists in performing direct property updates among the engine's internal objects. --- src/lib/tvgShapeImpl.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/tvgShapeImpl.h b/src/lib/tvgShapeImpl.h index 7376e7a5..33666944 100644 --- a/src/lib/tvgShapeImpl.h +++ b/src/lib/tvgShapeImpl.h @@ -303,6 +303,11 @@ struct Shape::Impl return true; } + void update(RenderUpdateFlag flag) + { + this->flag |= flag; + } + Paint* duplicate() { auto ret = Shape::gen();