mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 15:07:31 -06:00
FIX: fix the assemble view display issue when enter firstly
Change-Id: Idf432df9d3bb8eef1d57b08b6d345bc1867fe955
This commit is contained in:
parent
41b1ad6f2f
commit
f2aaddebb8
5 changed files with 13 additions and 6 deletions
|
@ -1050,7 +1050,8 @@ int GLVolumeCollection::load_object_volume(
|
|||
int volume_idx,
|
||||
int instance_idx,
|
||||
const std::string &color_by,
|
||||
bool opengl_initialized)
|
||||
bool opengl_initialized,
|
||||
bool in_assemble_view)
|
||||
{
|
||||
const ModelVolume *model_volume = model_object->volumes[volume_idx];
|
||||
const int extruder_id = model_volume->extruder_id();
|
||||
|
@ -1078,7 +1079,12 @@ int GLVolumeCollection::load_object_volume(
|
|||
}
|
||||
v.is_modifier = !model_volume->is_model_part();
|
||||
v.shader_outside_printer_detection_enabled = model_volume->is_model_part();
|
||||
v.set_instance_transformation(instance->get_transformation());
|
||||
if (in_assemble_view) {
|
||||
v.set_instance_transformation(instance->get_assemble_transformation());
|
||||
v.set_offset_to_assembly(instance->get_offset_to_assembly());
|
||||
}
|
||||
else
|
||||
v.set_instance_transformation(instance->get_transformation());
|
||||
v.set_volume_transformation(model_volume->get_transformation());
|
||||
|
||||
return int(this->volumes.size() - 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue