summaryrefslogtreecommitdiffstats
path: root/modules/openxr/editor/openxr_interaction_profile_editor.cpp
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2023-10-20 17:54:39 +0200
committerYuri Sizov <yuris@humnom.net>2023-10-20 17:54:39 +0200
commitcd31407cb3f178a2906f8d1f800c0a8e200094e5 (patch)
treebb8dfc993a9a5b724fbbd56b4282129866096958 /modules/openxr/editor/openxr_interaction_profile_editor.cpp
parentf333e4acf5b9cb04b3fba5dfc554107295db87b1 (diff)
downloadredot-engine-cd31407cb3f178a2906f8d1f800c0a8e200094e5.tar.gz
Clean up some Editor, OpenXR, VideoStream code
- EditorNode has excessive and pointless checks for Input singleton. - EditorNode initialization order is a bit awkward. - OpenXR binds a method that doesn't need that (for call deferred). - VideoStream has a formatting error.
Diffstat (limited to 'modules/openxr/editor/openxr_interaction_profile_editor.cpp')
-rw-r--r--modules/openxr/editor/openxr_interaction_profile_editor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/openxr/editor/openxr_interaction_profile_editor.cpp b/modules/openxr/editor/openxr_interaction_profile_editor.cpp
index 7bccabf936..da6a9eed70 100644
--- a/modules/openxr/editor/openxr_interaction_profile_editor.cpp
+++ b/modules/openxr/editor/openxr_interaction_profile_editor.cpp
@@ -45,7 +45,6 @@
void OpenXRInteractionProfileEditorBase::_bind_methods() {
ClassDB::bind_method(D_METHOD("_add_binding", "action", "path"), &OpenXRInteractionProfileEditorBase::_add_binding);
ClassDB::bind_method(D_METHOD("_remove_binding", "action", "path"), &OpenXRInteractionProfileEditorBase::_remove_binding);
- ClassDB::bind_method(D_METHOD("_update_interaction_profile"), &OpenXRInteractionProfileEditorBase::_update_interaction_profile);
}
void OpenXRInteractionProfileEditorBase::_notification(int p_what) {
@@ -63,7 +62,7 @@ void OpenXRInteractionProfileEditorBase::_notification(int p_what) {
void OpenXRInteractionProfileEditorBase::_do_update_interaction_profile() {
if (!is_dirty) {
is_dirty = true;
- call_deferred("_update_interaction_profile");
+ callable_mp(this, &OpenXRInteractionProfileEditorBase::_update_interaction_profile).call_deferred();
}
}