mesh_data_resource/plugin_gltf/editor_plugin_gltf_mdr.cpp

23 lines
397 B
C++
Raw Normal View History

2020-01-14 23:13:16 +01:00
#include "editor_plugin_gltf_mdr.h"
2020-01-14 23:13:16 +01:00
void EditorPluginGLTFMdr::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_ENTER_TREE:
_importer.instance();
add_import_plugin(_importer);
break;
case NOTIFICATION_EXIT_TREE:
remove_import_plugin(_importer);
_importer.unref();
break;
}
}
2020-01-14 23:13:16 +01:00
EditorPluginGLTFMdr::EditorPluginGLTFMdr(EditorNode *node) {
_node = node;
}