improve brush jitter

This commit is contained in:
2019-02-02 15:10:09 +01:00
parent fe7c357bcc
commit e9ead45447
2 changed files with 6 additions and 5 deletions

View File

@@ -151,8 +151,8 @@ void NodePanelStroke::init_controls()
if (on_brush_changed)
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->mouse_release();
//m_brush_popup->parent->remove_child(m_brush_popup.get());
};
};
@@ -209,6 +209,7 @@ void NodePanelStroke::init_controls()
});
};
update_controls();
}
void NodePanelStroke::init_slider(NodeSliderH*& target, const char* id, float Brush::* prop)