Skip to content

Commit

Permalink
Merge pull request godotengine#96688 from matheusmdx/fix-environment-…
Browse files Browse the repository at this point in the history
…tree-error

Fix `is_inside_tree` error when inspecting an Environment resource
  • Loading branch information
akien-mga committed Sep 8, 2024
2 parents c948541 + 1eacd1f commit dba8c65
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 dba8c65

Please sign in to comment.