mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-02 22:35:55 +01:00
Not the _on_paint_node_selected virtual will properly get called in PaintSidebarModule.
This commit is contained in:
parent
bfd80993f2
commit
7fa6ff6433
@ -45,7 +45,6 @@ String PaintEditorPlugin::get_name() const {
|
||||
|
||||
void PaintEditorPlugin::edit(Object *p_object) {
|
||||
_sidebar->on_paint_node_selected(Object::cast_to<PaintNode>(p_object));
|
||||
//make_visible(true);
|
||||
}
|
||||
bool PaintEditorPlugin::handles(Object *p_object) const {
|
||||
return p_object->is_class("PaintNode");
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user