mirror of
https://github.com/Relintai/texture_packer.git
synced 2024-11-12 10:15:16 +01:00
23 lines
446 B
C++
23 lines
446 B
C++
|
#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;
|
||
|
}
|