Fix. Allow simplify volume inside object, fix drawing wireframe

This commit is contained in:
Filip Sykala 2021-10-04 12:29:45 +02:00
parent 580f157d28
commit 39a98e97b4
2 changed files with 42 additions and 20 deletions

View file

@ -43,7 +43,9 @@ private:
void set_its(indexed_triangle_set &its);
void create_gui_cfg();
void request_rerender();
ModelVolume *get_selected_volume(int *object_idx = nullptr) const;
// move to global functions
static ModelVolume *get_volume(const Selection &selection, Model &model);
static const ModelVolume *get_volume(const GLVolume::CompositeID &cid, const Model &model);
// return false when volume was deleted
static bool exist_volume(ModelVolume *volume);