Fix mm rendering

This commit is contained in:
Noisyfox 2023-10-26 20:06:44 +08:00
parent 511bfa71b6
commit e211e7d144
3 changed files with 14 additions and 10 deletions

View file

@ -194,6 +194,8 @@ public:
bool force_neutral_color : 1;
// Whether or not to force rendering of sinking contours
bool force_sinking_contours : 1;
// Is render for picking
bool picking : 1;
};
// Is mouse or rectangle selection over this object to select/deselect it ?
@ -315,7 +317,7 @@ public:
virtual void render();
//BBS: add outline related logic and add virtual specifier
void render_with_outline(const Transform3d &view_model_matrix);
virtual void render_with_outline(const Transform3d &view_model_matrix);
//BBS: add simple render function for thumbnail
void simple_render(GLShaderProgram* shader, ModelObjectPtrs& model_objects, std::vector<ColorRGBA>& extruder_colors);
@ -348,6 +350,7 @@ class GLWipeTowerVolume : public GLVolume {
public:
GLWipeTowerVolume(const std::vector<ColorRGBA>& colors);
void render() override;
void render_with_outline(const Transform3d &view_model_matrix) override { render(); }
std::vector<GUI::GLModel> model_per_colors;
bool IsTransparent();