ENH: refine the color painting logics

1. optimize color painting performance
2. fix the issue that painting does not show if moving fast after bucket
   fill

Signed-off-by: yifan.wu <yifan.wu@bambulab.com>
Change-Id: I72204aac81b14c87edb602677abeef13ee0fad8f
(cherry picked from commit 02560f31c413cb561800fca242f8ef30504d0384)
This commit is contained in:
yifan.wu 2022-08-02 20:27:45 +08:00 committed by Lane.Wei
parent 988910f986
commit 9df3e7500a
6 changed files with 30 additions and 10 deletions

View file

@ -13,6 +13,9 @@ public:
void render_painter_gizmo() const override;
protected:
// BBS
void on_set_state() override;
wchar_t m_current_tool = 0;
void on_render_input_window(float x, float y, float bottom_limit) override;
std::string on_get_name() const override;