Add [esc] to interupt preview in simplify

This commit is contained in:
Filip Sykala 2021-10-18 16:47:25 +02:00
parent 80ccb77b00
commit a9bd989eda
3 changed files with 18 additions and 20 deletions

View file

@ -24,6 +24,7 @@ class GLGizmoSimplify: public GLGizmoBase, public GLGizmoTransparentRender // GL
public:
GLGizmoSimplify(GLCanvas3D& parent, const std::string& icon_filename, unsigned int sprite_id);
virtual ~GLGizmoSimplify();
bool on_esc_key_down();
protected:
virtual bool on_init() override;
virtual std::string on_get_name() const override;
@ -74,8 +75,6 @@ private:
struct Configuration
{
bool live_preview = false;
bool use_count = false;
// minimal triangle count
float decimate_ratio = 50.f; // in percent