diff --git a/common/src/main/cpp/export/export_plugin.cpp b/common/src/main/cpp/export/export_plugin.cpp index fb7a9fe2..b8d92ee1 100644 --- a/common/src/main/cpp/export/export_plugin.cpp +++ b/common/src/main/cpp/export/export_plugin.cpp @@ -33,7 +33,7 @@ using namespace godot; -OpenXREditorExportPlugin::OpenXREditorExportPlugin() {} +OpenXREditorExportPlugin::OpenXREditorExportPlugin() : _plugin_version(PLUGIN_VERSION) {} void OpenXREditorExportPlugin::_bind_methods() {} diff --git a/common/src/main/cpp/export/export_plugin.h b/common/src/main/cpp/export/export_plugin.h index 62e69eb3..e464d376 100644 --- a/common/src/main/cpp/export/export_plugin.h +++ b/common/src/main/cpp/export/export_plugin.h @@ -37,6 +37,8 @@ using namespace godot; +static const char *PLUGIN_VERSION = "2.0.2-stable"; + // Set of supported vendors static const char *META_VENDOR_NAME = "meta"; static const char *PICO_VENDOR_NAME = "pico"; @@ -81,10 +83,6 @@ class OpenXREditorExportPlugin: public EditorExportPlugin { _vendor = vendor_name; } - void set_plugin_version(const String &plugin_version) { - _plugin_version = plugin_version; - } - protected: static void _bind_methods(); @@ -137,5 +135,5 @@ class OpenXREditorExportPlugin: public EditorExportPlugin { String _vendor; - String _plugin_version; + const String _plugin_version; }; diff --git a/godotopenxrkhronos/src/main/cpp/export/khronos_export_plugin.cpp b/godotopenxrkhronos/src/main/cpp/export/khronos_export_plugin.cpp index 27bc378e..732cc322 100644 --- a/godotopenxrkhronos/src/main/cpp/export/khronos_export_plugin.cpp +++ b/godotopenxrkhronos/src/main/cpp/export/khronos_export_plugin.cpp @@ -36,8 +36,6 @@ void KhronosEditorPlugin::_bind_methods() {} void KhronosEditorPlugin::_enter_tree() { // Initialize the editor export plugin khronos_export_plugin = memnew(KhronosEditorExportPlugin); - khronos_export_plugin->set_plugin_version(get_plugin_version()); - add_export_plugin(khronos_export_plugin); } diff --git a/godotopenxrlynx/src/main/cpp/export/lynx_export_plugin.cpp b/godotopenxrlynx/src/main/cpp/export/lynx_export_plugin.cpp index 1aace7c9..4f480663 100644 --- a/godotopenxrlynx/src/main/cpp/export/lynx_export_plugin.cpp +++ b/godotopenxrlynx/src/main/cpp/export/lynx_export_plugin.cpp @@ -37,8 +37,6 @@ void LynxEditorPlugin::_enter_tree() { // Initialize the editor export plugin lynx_export_plugin = memnew(OpenXREditorExportPlugin); lynx_export_plugin->set_vendor_name(LYNX_VENDOR_NAME); - lynx_export_plugin->set_plugin_version(get_plugin_version()); - add_export_plugin(lynx_export_plugin); } diff --git a/godotopenxrmeta/src/main/cpp/export/meta_export_plugin.cpp b/godotopenxrmeta/src/main/cpp/export/meta_export_plugin.cpp index 8f452adf..75c41b14 100644 --- a/godotopenxrmeta/src/main/cpp/export/meta_export_plugin.cpp +++ b/godotopenxrmeta/src/main/cpp/export/meta_export_plugin.cpp @@ -38,8 +38,6 @@ void MetaEditorPlugin::_bind_methods() {} void MetaEditorPlugin::_enter_tree() { // Initialize the editor export plugin meta_export_plugin = memnew(MetaEditorExportPlugin); - meta_export_plugin->set_plugin_version(get_plugin_version()); - add_export_plugin(meta_export_plugin); } diff --git a/godotopenxrpico/src/main/cpp/export/pico_export_plugin.cpp b/godotopenxrpico/src/main/cpp/export/pico_export_plugin.cpp index 2ade26be..6e6e0f9b 100644 --- a/godotopenxrpico/src/main/cpp/export/pico_export_plugin.cpp +++ b/godotopenxrpico/src/main/cpp/export/pico_export_plugin.cpp @@ -37,8 +37,6 @@ void PicoEditorPlugin::_enter_tree() { // Initialize the editor export plugin pico_export_plugin = memnew(OpenXREditorExportPlugin); pico_export_plugin->set_vendor_name(PICO_VENDOR_NAME); - pico_export_plugin->set_plugin_version(get_plugin_version()); - add_export_plugin(pico_export_plugin); }