mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-08 04:59:10 +08:00
Fixed merge conflict: Added ModelInstance ID to the SLAPrintObject Instance
This commit is contained in:
parent
fedc78dc91
commit
3858fecf0c
@ -100,7 +100,7 @@ SLAPrint::ApplyStatus SLAPrint::apply(const Model &model,
|
||||
Point tr = Point::new_scale(oinst->get_offset()(X),
|
||||
oinst->get_offset()(Y));
|
||||
auto rotZ = float(oinst->get_rotation()(Z));
|
||||
po->m_instances.emplace_back(tr, rotZ);
|
||||
po->m_instances.emplace_back(oinst->id(), tr, rotZ);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -40,6 +40,8 @@ public:
|
||||
const Transform3d& trafo() const { return m_trafo; }
|
||||
|
||||
struct Instance {
|
||||
Instance(ModelID instance_id, const Point &shift, float rotation) : instance_id(instance_id), shift(shift), rotation(rotation) {}
|
||||
// ID of the corresponding ModelInstance.
|
||||
ModelID instance_id;
|
||||
// Slic3r::Point objects in scaled G-code coordinates
|
||||
Point shift;
|
||||
|
Loading…
x
Reference in New Issue
Block a user