fixed element graphic on properties page in level editor
authorHolger Schemel <info@artsoft.org>
Sat, 27 Apr 2024 11:42:59 +0000 (13:42 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 27 Apr 2024 11:43:00 +0000 (13:43 +0200)
src/editor.c

index f21d086ea693aa6a9225d11f7c9eb4c787d2a0ae..34bcb2f9149665a85903828632a7414fb5f65712 100644 (file)
@@ -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)