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:
commit
b32b435520
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue