mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-23 12:26:59 +01:00
Added the new PaintEditorPlugin as an engine global.
This commit is contained in:
parent
14c503a41b
commit
0963538827
@ -22,6 +22,8 @@ SOFTWARE.
|
||||
|
||||
#include "paint_editor_plugin.h"
|
||||
|
||||
#include "core/config/engine.h"
|
||||
|
||||
void PaintEditorPlugin::make_visible(const bool visible) {
|
||||
}
|
||||
|
||||
@ -33,9 +35,12 @@ PaintEditorPlugin::PaintEditorPlugin(EditorNode *p_node) {
|
||||
editor = p_node;
|
||||
|
||||
make_visible(false);
|
||||
|
||||
Engine::get_singleton()->add_global("PaintEditorPlugin", this);
|
||||
}
|
||||
|
||||
PaintEditorPlugin::~PaintEditorPlugin() {
|
||||
Engine::get_singleton()->remove_global("PaintEditorPlugin");
|
||||
}
|
||||
|
||||
void PaintEditorPlugin::_bind_methods() {
|
||||
|
Loading…
Reference in New Issue
Block a user