Re-enable volumes in SLA, use raycasters from canvas in supports gizmo
Got rid of HollowedMesh and Raycaster usage from GizmosCommon pool to prevent crashes
This commit is contained in:
parent
15fa4c42d6
commit
9bc3410474
16 changed files with 269 additions and 207 deletions
|
@ -62,18 +62,18 @@ Selection::VolumeCache::VolumeCache(const Geometry::Transformation& volume_trans
|
|||
|
||||
bool Selection::Clipboard::is_sla_compliant() const
|
||||
{
|
||||
if (m_mode == Selection::Volume)
|
||||
return false;
|
||||
// if (m_mode == Selection::Volume)
|
||||
// return false;
|
||||
|
||||
for (const ModelObject* o : m_model->objects) {
|
||||
if (o->is_multiparts())
|
||||
return false;
|
||||
// for (const ModelObject* o : m_model->objects) {
|
||||
// if (o->is_multiparts())
|
||||
// return false;
|
||||
|
||||
for (const ModelVolume* v : o->volumes) {
|
||||
if (v->is_modifier())
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// for (const ModelVolume* v : o->volumes) {
|
||||
// if (v->is_modifier())
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -571,13 +571,13 @@ bool Selection::is_from_single_object() const
|
|||
|
||||
bool Selection::is_sla_compliant() const
|
||||
{
|
||||
if (m_mode == Volume)
|
||||
return false;
|
||||
// if (m_mode == Volume)
|
||||
// return false;
|
||||
|
||||
for (unsigned int i : m_list) {
|
||||
if ((*m_volumes)[i]->is_modifier)
|
||||
return false;
|
||||
}
|
||||
// for (unsigned int i : m_list) {
|
||||
// if ((*m_volumes)[i]->is_modifier)
|
||||
// return false;
|
||||
// }
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue