Properties: remove assertion that no longer makes sense

(cherry picked from commit e5b376721d)
This commit is contained in:
Jon Evans 2023-02-14 21:01:56 -05:00
parent 1909ce9220
commit df0f626283
1 changed files with 6 additions and 3 deletions

View File

@ -217,10 +217,13 @@ void PROPERTIES_PANEL::rebuildProperties( const SELECTION& aSelection )
for( wxPropertyGridIterator it = m_grid->GetIterator(); !it.AtEnd(); it.Next() )
{
wxPGProperty* pgProp = it.GetProperty();
wxPGProperty* pgProp = it.GetProperty();
PROPERTY_BASE* property = propMgr.GetProperty( TYPE_HASH( *firstItem ), pgProp->GetName() );
wxCHECK2( property, continue );
// Switching item types? Property may no longer be valid
if( !property )
continue;
wxVariant commonVal;
extractValueAndWritability( aSelection, property, commonVal, writeable );