Skip to content

Commit

Permalink
Do not attempt to set cursor shape when that feature is not available.
Browse files Browse the repository at this point in the history
Co-authored-by: Riteo <riteo@posteo.net>
  • Loading branch information
chrisl8 and Riteo committed Mar 2, 2024
1 parent f2045ba commit e6d0bf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion editor/editor_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6191,7 +6191,9 @@ EditorNode::EditorNode() {
// Only if no touchscreen ui hint, disable emulation just in case.
Input::get_singleton()->set_emulate_touch_from_mouse(false);
}
DisplayServer::get_singleton()->cursor_set_custom_image(Ref<Resource>());
if (DisplayServer::get_singleton()->has_feature(DisplayServer::FEATURE_CUSTOM_CURSOR_SHAPE)) {
DisplayServer::get_singleton()->cursor_set_custom_image(Ref<Resource>());
}
}

SceneState::set_disable_placeholders(true);
Expand Down

0 comments on commit e6d0bf3

Please sign in to comment.