texture_packer/texture_resource/editor_plugin_packer_image_resource.cpp

23 lines
446 B
C++
Raw Normal View History

#include "editor_plugin_packer_image_resource.h"
void EditorPluginPackerImageResource::_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;
}
}
EditorPluginPackerImageResource::EditorPluginPackerImageResource(EditorNode *node) {
_node = node;
}