From e6d0bf32e9cfca1118d95a371d869c8ec0d43d2b Mon Sep 17 00:00:00 2001 From: Christen Lofland Date: Sat, 2 Mar 2024 13:56:19 -0600 Subject: [PATCH] Do not attempt to set cursor shape when that feature is not available. Co-authored-by: Riteo --- editor/editor_node.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp index dc902564906c..d2d10efaf3b0 100644 --- a/editor/editor_node.cpp +++ b/editor/editor_node.cpp @@ -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()); + if (DisplayServer::get_singleton()->has_feature(DisplayServer::FEATURE_CUSTOM_CURSOR_SHAPE)) { + DisplayServer::get_singleton()->cursor_set_custom_image(Ref()); + } } SceneState::set_disable_placeholders(true);