mirror of
https://github.com/godotengine/godot.git
synced 2025-02-16 15:50:45 +00:00
Fix is_inside_tree error when inspecting an Environment resource
This commit is contained in:
parent
5675c76461
commit
1eacd1fd0e
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user