Fixed wrong z value after reload from disk for objects with x and y rotation
This commit is contained in:
parent
e9bb3c2450
commit
ba5815c606
@ -3331,12 +3331,17 @@ void Plater::priv::reload_from_disk()
|
|||||||
new_volume->source.input_file = path;
|
new_volume->source.input_file = path;
|
||||||
std::swap(old_model_object->volumes[old_v.volume_idx], old_model_object->volumes.back());
|
std::swap(old_model_object->volumes[old_v.volume_idx], old_model_object->volumes.back());
|
||||||
old_model_object->delete_volume(old_model_object->volumes.size() - 1);
|
old_model_object->delete_volume(old_model_object->volumes.size() - 1);
|
||||||
|
#if ENABLE_KEEP_LOADED_VOLUME_TRANSFORM_AS_STAND_ALONE
|
||||||
|
old_model_object->ensure_on_bed();
|
||||||
|
#endif // ENABLE_KEEP_LOADED_VOLUME_TRANSFORM_AS_STAND_ALONE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !ENABLE_KEEP_LOADED_VOLUME_TRANSFORM_AS_STAND_ALONE
|
||||||
model.adjust_min_z();
|
model.adjust_min_z();
|
||||||
|
#endif // !ENABLE_KEEP_LOADED_VOLUME_TRANSFORM_AS_STAND_ALONE
|
||||||
|
|
||||||
// update 3D scene
|
// update 3D scene
|
||||||
update();
|
update();
|
||||||
|
Loading…
Reference in New Issue
Block a user