mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
GLVolume : set color from the model volume to correct part rendering on the Scene
This commit is contained in:
parent
6997f7f5b5
commit
adbf1b674b
3 changed files with 28 additions and 2 deletions
|
@ -358,6 +358,8 @@ public:
|
|||
void set_render_color(const float* rgba, unsigned int size);
|
||||
// Sets render color in dependence of current state
|
||||
void set_render_color();
|
||||
// set color according to model volume
|
||||
void set_color_from_model_volume(const ModelVolume *model_volume);
|
||||
|
||||
#if ENABLE_MODELVOLUME_TRANSFORM
|
||||
const Geometry::Transformation& get_instance_transformation() const { return m_instance_transformation; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue