Merge pull request #112687 from Meorge/bugfix/margincontainer-not-inside-tree
Stop drawing of MarginContainer margins if not in tree
This commit is contained in:
@ -51,7 +51,7 @@ bool MarginContainerEditorPlugin::handles(Object *p_object) const {
|
||||
}
|
||||
|
||||
void MarginContainerEditorPlugin::forward_canvas_draw_over_viewport(Control *p_viewport_control) {
|
||||
if (!margin_container) {
|
||||
if (!margin_container || !margin_container->is_visible_in_tree()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user