You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-04 17:04:49 +00:00
Stop drawing of MarginContainer margins if not in tree
Use `is_visible_in_tree()` as per KoBeWi's suggestion
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