FIX: Reload from disk does not work with STP-files
STUDIO-2734 Reload from disk does not work with STP-files loaded as a "single object with multiple parts" Change-Id: Iab8a8d404505cb3cdd02631c320ab69fd88b40b4
This commit is contained in:
parent
f43beb01e0
commit
89e7f1a8f1
|
@ -5057,7 +5057,7 @@ void Plater::priv::reload_from_disk()
|
|||
if (has_source && old_volume->source.object_idx < int(new_model.objects.size())) {
|
||||
const ModelObject *obj = new_model.objects[old_volume->source.object_idx];
|
||||
if (old_volume->source.volume_idx < int(obj->volumes.size())) {
|
||||
if (obj->volumes[old_volume->source.volume_idx]->name == old_volume->name) {
|
||||
if (obj->volumes[old_volume->source.volume_idx]->source.input_file == old_volume->source.input_file) {
|
||||
new_volume_idx = old_volume->source.volume_idx;
|
||||
new_object_idx = old_volume->source.object_idx;
|
||||
match_found = true;
|
||||
|
|
Loading…
Reference in New Issue