mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 15:24:55 +08:00
[godot] Clean-up SpineRuntimeEditorPlugin and type registration.
This commit is contained in:
parent
b760bb7606
commit
e9e4a3af65
@ -73,14 +73,9 @@ public:
|
||||
Error import(const String &p_source_file, const String &p_save_path, const Map<StringName, Variant> &p_options, List<String> *r_platform_variants, List<String> *r_gen_files, Variant *r_metadata) override;
|
||||
};
|
||||
|
||||
class SpineSpriteAnimateDialog;
|
||||
|
||||
class SpineRuntimeEditorPlugin : public EditorPlugin {
|
||||
GDCLASS(SpineRuntimeEditorPlugin, EditorPlugin);
|
||||
|
||||
protected:
|
||||
SpineSpriteAnimateDialog *animate_dialog;
|
||||
|
||||
public:
|
||||
SpineRuntimeEditorPlugin(EditorNode *p_node);
|
||||
~SpineRuntimeEditorPlugin();
|
||||
|
||||
@ -78,10 +78,7 @@ static void editor_init_callback() {
|
||||
|
||||
void register_spine_godot_types() {
|
||||
#ifdef TOOLS_ENABLED
|
||||
ClassDB::register_class<SpineSpriteAnimateDialog>();
|
||||
|
||||
EditorNode::add_init_callback(editor_init_callback);
|
||||
|
||||
#endif
|
||||
|
||||
ClassDB::register_class<SpineAtlasResource>();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user