Add node configuration warnings for nested clipping and CanvasGroups

Many subclasses of CanvasItem had to have their `get_configuration_warnings` methods updated so they would display the warning as well

Make clip children warning update whenever clip_children_mode is modified

Update scene/main/canvas_item.h

Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>

Add warning if ancestor of clipping CanvasItem is CanvasGroup

Add warnings for CanvasGroup when ancestors are CanvasGroups or clip children
This commit is contained in:
Malcolm Anderson 2024-11-07 21:30:41 -08:00
parent 594d64ec24
commit 60a9c8e2ea
4 changed files with 70 additions and 0 deletions

View file

@ -398,6 +398,8 @@ public:
int get_canvas_layer() const;
CanvasLayer *get_canvas_layer_node() const;
virtual PackedStringArray get_configuration_warnings() const override;
CanvasItem();
~CanvasItem();
};