Skip to content

Commit

Permalink
Fix is_inside_tree error when inspecting an Environment resource
Browse files Browse the repository at this point in the history
  • Loading branch information
matheusmdx committed Sep 7, 2024
1 parent 5675c76 commit 1eacd1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/gui/editor_spin_slider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ void EditorSpinSlider::_grabber_mouse_exited() {

void EditorSpinSlider::set_read_only(bool p_enable) {
read_only = p_enable;
if (read_only && value_input) {
if (read_only && value_input && value_input->is_inside_tree()) {
value_input->release_focus();
}

Expand Down

0 comments on commit 1eacd1f

Please sign in to comment.