Sync changes from upstream repository

Co-authored-by: Andrew Le Bihan <andy@mcneel.com>
Co-authored-by: croudyj <croudyj@gmail.com>
Co-authored-by: Dale Lear <dalelear@mcneel.com>
Co-authored-by: David Eränen <david.eranen@mcneel.com>
Co-authored-by: Giulio Piacentino <giulio@mcneel.com>
Co-authored-by: Greg Arden <greg@mcneel.com>
Co-authored-by: Jussi Aaltonen <jussi@mcneel.com>
Co-authored-by: kike-garbo <kike@mcneel.com>
Co-authored-by: Mikko Oksanen <mikko@mcneel.com>
Co-authored-by: Pierre Cuvilliers <pierre@mcneel.com>
Co-authored-by: sodermax <max.soderstrom@mcneel.com>
Co-authored-by: steve <steve@mcneel.com>
Co-authored-by: Steve Baer <steve@mcneel.com>
Co-authored-by: Will Pearson <will@mcneel.com>
This commit is contained in:
Bozo The Builder
2023-02-23 16:10:31 -08:00
parent e88525df92
commit 6c3cec9905
50 changed files with 3748 additions and 1022 deletions

View File

@@ -265,6 +265,10 @@ unsigned int ON_ComponentStatus::ClearStates(
s1 &= mask;
if (s1 != (m_status_flags & ALL_MASK))
{
// 29 Dec 2022, Mikko, RH-71974:
// This is wrong, selected and highlighted are separate states. A thing can be not selected but
// still highlighted.
/*
// If input was selected and highlighted,
// and output is not selected,
// and hightlight and not explictily cleared,
@@ -280,6 +284,7 @@ unsigned int ON_ComponentStatus::ClearStates(
// Clear highlight automatically.
s1 &= ~HIGHLIGHTED_BIT;
}
*/
// preserve value of runtime mark bit on m_status_flags
const unsigned char mark = (m_status_flags&RUNTIME_MARK_BIT);