mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-04 23:10:50 +08:00
Remember that std::vector<>.size() needs to be offset by 1 if it's being used to find the last index.
This commit is contained in:
parent
10f4bf9be9
commit
2e74c9f3ad
@ -244,7 +244,7 @@ std::vector<int> Plater::load_model_objects(ModelObjectPtrs model_objects) {
|
|||||||
tmpobj.identifier = (this->object_identifier)++;
|
tmpobj.identifier = (this->object_identifier)++;
|
||||||
|
|
||||||
this->objects.push_back(tmpobj);
|
this->objects.push_back(tmpobj);
|
||||||
obj_idx.push_back(this->objects.size());
|
obj_idx.push_back(this->objects.size() - 1);
|
||||||
Slic3r::Log::info(LogChannel, LOG_WSTRING("Object array new size: " << this->objects.size()));
|
Slic3r::Log::info(LogChannel, LOG_WSTRING("Object array new size: " << this->objects.size()));
|
||||||
Slic3r::Log::info(LogChannel, LOG_WSTRING("Instances: " << obj->instances.size()));
|
Slic3r::Log::info(LogChannel, LOG_WSTRING("Instances: " << obj->instances.size()));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user