material-maker/addons/material_maker/plugin.gd

14 lines
296 B
GDScript3
Raw Normal View History

tool
extends EditorPlugin
var importer = null
func _enter_tree() -> void:
2019-10-16 23:15:11 +02:00
importer = preload("res://addons/material_maker/import_plugin/ptex_import.gd").new(self)
add_import_plugin(importer)
func _exit_tree() -> void:
if importer != null:
remove_import_plugin(importer)
importer = null