mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-07-26 09:04:28 +08:00
Fix of my previous commit.
This commit is contained in:
parent
233c1593f1
commit
8d7a34160d
@ -3941,9 +3941,11 @@ void GLCanvas3D::reload_scene(bool refresh_immediately, bool force_full_scene_re
|
|||||||
mvs->volume_idx = glvolumes_new.size();
|
mvs->volume_idx = glvolumes_new.size();
|
||||||
glvolumes_new.emplace_back(volume);
|
glvolumes_new.emplace_back(volume);
|
||||||
// Update color of the volume based on the current extruder.
|
// Update color of the volume based on the current extruder.
|
||||||
int extruder_id = mvs->model_volume->extruder_id();
|
if (mvs->model_volume != nullptr) {
|
||||||
if (extruder_id != -1)
|
int extruder_id = mvs->model_volume->extruder_id();
|
||||||
volume->extruder_id = extruder_id;
|
if (extruder_id != -1)
|
||||||
|
volume->extruder_id = extruder_id;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user