From a17bb502b568bb4ab585b9aff45b571ac724d52e Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 27 Apr 2024 13:42:59 +0200 Subject: [PATCH] fixed element graphic on properties page in level editor --- src/editor.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/editor.c b/src/editor.c index f21d086e..34bcb2f9 100644 --- a/src/editor.c +++ b/src/editor.c @@ -13078,9 +13078,18 @@ static void DrawEditorElementAnimation(int x, int y) int graphic; int frame; - getEditorGraphicAndFrame(properties_element, &graphic, &frame, FALSE); + if (IS_BD_RUNTIME_ELEMENT(properties_element)) + { + getEditorGraphicAndFrame(properties_element, &graphic, &frame, TRUE); + + DrawFixedGraphicExt(drawto, x, y, graphic, frame); + } + else + { + getEditorGraphicAndFrame(properties_element, &graphic, &frame, FALSE); - DrawFixedGraphicAnimationExt(drawto, x, y, graphic, frame, NO_MASKING); + DrawFixedGraphicAnimationExt(drawto, x, y, graphic, frame, NO_MASKING); + } } static void DrawEditorElementName(int x, int y, int font_nr) -- 2.34.1