Do not attempt to set cursor shape when that feature is not available.

Co-authored-by: Riteo <riteo@posteo.net>
This commit is contained in:
Christen Lofland 2024-03-02 13:56:19 -06:00
parent f2045ba822
commit e6d0bf32e9
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -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);