Skip to content

Commit

Permalink
Tiny fix in histogram code
Browse files Browse the repository at this point in the history
  • Loading branch information
RodZill4 committed Dec 7, 2024
1 parent 9bf98fd commit 219af93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions material_maker/widgets/histogram/histogram.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 219af93

Please sign in to comment.