diff --git a/modules/paint/nodes/paint_project.cpp b/modules/paint/nodes/paint_project.cpp index 5ef9ac1da..69ed11e84 100644 --- a/modules/paint/nodes/paint_project.cpp +++ b/modules/paint/nodes/paint_project.cpp @@ -6,7 +6,7 @@ Color PaintProject::get_current_color() { void PaintProject::set_current_color(const Color &color) { _current_color = color; - emit_signal("current_color_changed", _current_color); + emit_signal("current_color_changed", _current_color); } PaintProject::PaintProject() { diff --git a/modules/paint/paint_editor_plugin.cpp b/modules/paint/paint_editor_plugin.cpp index 356958148..ff5fd92f1 100644 --- a/modules/paint/paint_editor_plugin.cpp +++ b/modules/paint/paint_editor_plugin.cpp @@ -45,7 +45,6 @@ String PaintEditorPlugin::get_name() const { void PaintEditorPlugin::edit(Object *p_object) { _sidebar->on_paint_node_selected(Object::cast_to(p_object)); - //make_visible(true); } bool PaintEditorPlugin::handles(Object *p_object) const { return p_object->is_class("PaintNode"); diff --git a/modules/paint/ui/paint_sidebar_module.cpp b/modules/paint/ui/paint_sidebar_module.cpp index e450fb6af..094481806 100644 --- a/modules/paint/ui/paint_sidebar_module.cpp +++ b/modules/paint/ui/paint_sidebar_module.cpp @@ -22,6 +22,8 @@ SOFTWARE. #include "paint_sidebar_module.h" +#include "../nodes/paint_node.h" + void PaintSidebarModule::on_paint_node_selected(PaintNode *paint_node) { call("_on_paint_node_selected", paint_node); } diff --git a/modules/paint/ui/paint_sidebar_module.h b/modules/paint/ui/paint_sidebar_module.h index a52fbe39c..463da024b 100644 --- a/modules/paint/ui/paint_sidebar_module.h +++ b/modules/paint/ui/paint_sidebar_module.h @@ -33,6 +33,7 @@ class PaintSidebarModule : public PanelContainer { public: void on_paint_node_selected(PaintNode *paint_node); void on_paint_node_selected_bind(Node *paint_node); + virtual void _on_paint_node_selected(Node *paint_node); PaintSidebarModule();