File tree 9 files changed +13
-17
lines changed
godotopenxrkhronos/src/main/cpp/export
godotopenxrlynx/src/main/cpp/export
godotopenxrmeta/src/main/cpp/export
godotopenxrpico/src/main/cpp/export
9 files changed +13
-17
lines changed Original file line number Diff line number Diff line change 1
1
# Change history for the Godot OpenXR loaders asset
2
2
3
3
## 2.0.4
4
+ - Fix misc crash when reloading project on Godot 4.3
4
5
- Fix issue with only the first permission being requested
5
6
6
7
## 2.0.3
Original file line number Diff line number Diff line change @@ -35,16 +35,15 @@ void KhronosEditorPlugin::_bind_methods() {}
35
35
36
36
void KhronosEditorPlugin::_enter_tree () {
37
37
// Initialize the editor export plugin
38
- khronos_export_plugin = memnew (KhronosEditorExportPlugin );
38
+ khronos_export_plugin. instantiate ( );
39
39
add_export_plugin (khronos_export_plugin);
40
40
}
41
41
42
42
void KhronosEditorPlugin::_exit_tree () {
43
43
// Clean up the editor export plugin
44
44
remove_export_plugin (khronos_export_plugin);
45
45
46
- memfree (khronos_export_plugin);
47
- khronos_export_plugin = nullptr ;
46
+ khronos_export_plugin.unref ();
48
47
}
49
48
50
49
KhronosEditorExportPlugin::KhronosEditorExportPlugin () {
Original file line number Diff line number Diff line change @@ -58,5 +58,5 @@ class KhronosEditorPlugin : public EditorPlugin {
58
58
static void _bind_methods ();
59
59
60
60
private:
61
- KhronosEditorExportPlugin * khronos_export_plugin = nullptr ;
61
+ Ref< KhronosEditorExportPlugin> khronos_export_plugin;
62
62
};
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ void LynxEditorPlugin::_bind_methods() {}
35
35
36
36
void LynxEditorPlugin::_enter_tree () {
37
37
// Initialize the editor export plugin
38
- lynx_export_plugin = memnew (OpenXREditorExportPlugin );
38
+ lynx_export_plugin. instantiate ( );
39
39
lynx_export_plugin->set_vendor_name (LYNX_VENDOR_NAME);
40
40
add_export_plugin (lynx_export_plugin);
41
41
}
@@ -44,6 +44,5 @@ void LynxEditorPlugin::_exit_tree() {
44
44
// Clean up the editor export plugin
45
45
remove_export_plugin (lynx_export_plugin);
46
46
47
- memfree (lynx_export_plugin);
48
- lynx_export_plugin = nullptr ;
47
+ lynx_export_plugin.unref ();
49
48
}
Original file line number Diff line number Diff line change @@ -46,5 +46,5 @@ class LynxEditorPlugin : public EditorPlugin {
46
46
static void _bind_methods ();
47
47
48
48
private:
49
- OpenXREditorExportPlugin * lynx_export_plugin = nullptr ;
49
+ Ref< OpenXREditorExportPlugin> lynx_export_plugin;
50
50
};
Original file line number Diff line number Diff line change @@ -37,16 +37,15 @@ void MetaEditorPlugin::_bind_methods() {}
37
37
38
38
void MetaEditorPlugin::_enter_tree () {
39
39
// Initialize the editor export plugin
40
- meta_export_plugin = memnew (MetaEditorExportPlugin );
40
+ meta_export_plugin. instantiate ( );
41
41
add_export_plugin (meta_export_plugin);
42
42
}
43
43
44
44
void MetaEditorPlugin::_exit_tree () {
45
45
// Clean up the editor export plugin
46
46
remove_export_plugin (meta_export_plugin);
47
47
48
- memfree (meta_export_plugin);
49
- meta_export_plugin = nullptr ;
48
+ meta_export_plugin.unref ();
50
49
}
51
50
52
51
MetaEditorExportPlugin::MetaEditorExportPlugin () {
Original file line number Diff line number Diff line change @@ -101,6 +101,5 @@ class MetaEditorPlugin : public EditorPlugin {
101
101
static void _bind_methods ();
102
102
103
103
private:
104
- MetaEditorExportPlugin *meta_export_plugin = nullptr ;
105
-
104
+ Ref<MetaEditorExportPlugin> meta_export_plugin;
106
105
};
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ void PicoEditorPlugin::_bind_methods() {}
35
35
36
36
void PicoEditorPlugin::_enter_tree () {
37
37
// Initialize the editor export plugin
38
- pico_export_plugin = memnew (OpenXREditorExportPlugin );
38
+ pico_export_plugin. instantiate ( );
39
39
pico_export_plugin->set_vendor_name (PICO_VENDOR_NAME);
40
40
add_export_plugin (pico_export_plugin);
41
41
}
@@ -44,6 +44,5 @@ void PicoEditorPlugin::_exit_tree() {
44
44
// Clean up the editor export plugin
45
45
remove_export_plugin (pico_export_plugin);
46
46
47
- memfree (pico_export_plugin);
48
- pico_export_plugin = nullptr ;
47
+ pico_export_plugin.unref ();
49
48
}
Original file line number Diff line number Diff line change @@ -46,5 +46,5 @@ class PicoEditorPlugin : public EditorPlugin {
46
46
static void _bind_methods ();
47
47
48
48
private:
49
- OpenXREditorExportPlugin * pico_export_plugin = nullptr ;
49
+ Ref< OpenXREditorExportPlugin> pico_export_plugin;
50
50
};
You can’t perform that action at this time.
0 commit comments