Avoid incorrect computing anchor of Control node when reset on save

This commit is contained in:
Silc Lizard (Tokage) Renew 2024-05-03 11:41:17 +09:00
parent 7ebc866418
commit 57cd00aee9
2 changed files with 29 additions and 0 deletions

View file

@ -47,6 +47,10 @@ class ThemeContext;
class Control : public CanvasItem {
GDCLASS(Control, CanvasItem);
#ifdef TOOLS_ENABLED
bool saving = false;
#endif
public:
enum Anchor {
ANCHOR_BEGIN = 0,