From 219af939b1b3ff45aa4a99a39f95659ee677b849 Mon Sep 17 00:00:00 2001 From: Rodz Labs Date: Sat, 7 Dec 2024 23:26:19 +0100 Subject: [PATCH] Tiny fix in histogram code --- material_maker/widgets/histogram/histogram.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/material_maker/widgets/histogram/histogram.gd b/material_maker/widgets/histogram/histogram.gd index ff721aa8c..d64b75f80 100644 --- a/material_maker/widgets/histogram/histogram.gd +++ b/material_maker/widgets/histogram/histogram.gd @@ -90,10 +90,10 @@ func on_dep_update_buffer(_buffer_name) -> bool: return false for v in [ $ViewportImage, $ViewportHistogram1, $ViewportHistogram2 ]: v.render_target_update_mode = SubViewport.UPDATE_ONCE - if get_tree() == null: + if not is_inside_tree(): return false await get_tree().process_frame - if get_tree() == null: + if not is_inside_tree(): return false await get_tree().process_frame mm_deps.dependency_update("histogram_"+str(get_instance_id()), null, true)