mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-03-01 19:46:08 +08:00
Sync changes from upstream repository
Co-authored-by: croudyj <croudyj@gmail.com> Co-authored-by: Dale Lear <dalelear@mcneel.com> Co-authored-by: Greg Arden <greg@mcneel.com> Co-authored-by: Jussi Aaltonen <jussi@mcneel.com> Co-authored-by: piac <giulio@mcneel.com> Co-authored-by: Pierre Cuvilliers <pierre@mcneel.com> Co-authored-by: Steve Baer <steve@mcneel.com> Co-authored-by: Will Pearson <will@mcneel.com>
This commit is contained in:
@@ -781,7 +781,7 @@ bool ON_3dmObjectAttributes::Internal_ReadV5( ON_BinaryArchive& file )
|
||||
ON_Color color = ON_Color::UnsetColor;
|
||||
rc = file.ReadColor(color);
|
||||
if (!rc) break;
|
||||
SetHatchBackgrounFillColor(color);
|
||||
SetHatchBackgroundFillColor(color);
|
||||
rc = file.ReadChar(&itemid);
|
||||
if (!rc || 0 == itemid) break;
|
||||
}
|
||||
@@ -1989,7 +1989,12 @@ unsigned int ON_3dmObjectAttributes::ApplyParentalControl(
|
||||
SetSectionAttributesSource(parents_attributes.SectionAttributesSource());
|
||||
if (ON::SectionAttributesSource::FromLayer == SectionAttributesSource() && parent_layer.Index() >= 0)
|
||||
{
|
||||
SetSectionAttributesSource(ON::SectionAttributesSource::FromLayer);
|
||||
SetSectionAttributesSource(ON::SectionAttributesSource::FromObject);
|
||||
const ON_SectionStyle* sectionStyle = parent_layer.CustomSectionStyle();
|
||||
if (sectionStyle)
|
||||
SetCustomSectionStyle(*sectionStyle);
|
||||
else
|
||||
RemoveCustomSectionStyle();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2446,7 +2451,7 @@ ON_Color ON_3dmObjectAttributes::HatchBackgroundFillColor() const
|
||||
{
|
||||
return m_private ? m_private->m_hatch_background_fill : ON_Color::UnsetColor;
|
||||
}
|
||||
void ON_3dmObjectAttributes::SetHatchBackgrounFillColor(const ON_Color& color)
|
||||
void ON_3dmObjectAttributes::SetHatchBackgroundFillColor(const ON_Color& color)
|
||||
{
|
||||
ON_Color c = color;
|
||||
if (c.Alpha() == 255)
|
||||
|
||||
Reference in New Issue
Block a user