Fix issue that painted brim is not generated if brim width is set to 0 (#8700)

* Fix issue that painted brim is not generated if brim width is set to 0 (SoftFever/OrcaSlicer#8687)
This commit is contained in:
Noisyfox 2025-03-06 20:28:54 +08:00 committed by GitHub
parent fbfbb0932f
commit b5f443c64c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -344,7 +344,8 @@ public:
std::vector<groupedVolumeSlices>& firstLayerObjGroupsMod() { return firstLayerObjSliceByGroups; }
bool has_brim() const {
return ((this->config().brim_type != btNoBrim && this->config().brim_width.value > 0.) || this->config().brim_type == btAutoBrim)
return ((this->config().brim_type != btNoBrim && this->config().brim_width.value > 0.) || this->config().brim_type == btAutoBrim
|| (this->config().brim_type == btPainted && !this->model_object()->brim_points.empty()))
&& ! this->has_raft();
}