mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-15 15:35:55 +08:00
FIX: use metadata with related index for shared volume
Change-Id: If5ef2e9245a88666600eab0e5f6b92dc8ab3fb14
This commit is contained in:
parent
6849fdb912
commit
d488363095
@ -4259,7 +4259,9 @@ void PlateData::parse_filament_info(GCodeProcessorResult *result)
|
||||
|
||||
const ObjectMetadata::VolumeMetadata* volume_data = nullptr;
|
||||
ObjectMetadata::VolumeMetadata default_volume_data(sub_object->id);
|
||||
for (const ObjectMetadata::VolumeMetadata& volume_iter : volumes) {
|
||||
if (index < volumes.size() && volumes[index].subobject_id == sub_object->id)
|
||||
volume_data = &volumes[index];
|
||||
else for (const ObjectMetadata::VolumeMetadata& volume_iter : volumes) {
|
||||
if (volume_iter.subobject_id == sub_object->id) {
|
||||
volume_data = &volume_iter;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user