rename parent to m_parent and add floating panel class
This commit is contained in:
@@ -375,7 +375,7 @@ void NodePanelStroke::init_controls()
|
||||
on_brush_changed(this, m_brush_popup->get_texture_path(index), m_brush_popup->get_thumb_path(index));
|
||||
m_brush_thumb->set_image(m_brush_popup->get_thumb_path(index));
|
||||
//m_brush_popup->mouse_release();
|
||||
//m_brush_popup->parent->remove_child(m_brush_popup.get());
|
||||
//m_brush_popup->m_parent->remove_child(m_brush_popup.get());
|
||||
};
|
||||
};
|
||||
|
||||
@@ -696,7 +696,7 @@ kEventResult NodePanelStroke::handle_event(Event* e)
|
||||
if (!m_mouse_inside)
|
||||
{
|
||||
mouse_release();
|
||||
parent->remove_child(this);
|
||||
m_parent->remove_child(this);
|
||||
if (on_popup_close)
|
||||
on_popup_close(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user