Assign result

Fixed bug where clicking on type selection button the first time leads to error.
This commit is contained in:
chadefranklin 2022-03-28 20:46:01 -04:00
parent 28ce93d8fc
commit 1abb5d7e35

View File

@ -81,7 +81,8 @@ namespace MackySoft.SerializeReferenceExtensions.Editor {
m_TargetProperty.serializedObject.ApplyModifiedProperties();
};
m_TypePopups.Add(managedReferenceFieldTypename,new TypePopupCache(popup,state));
result = new TypePopupCache(popup, state);
m_TypePopups.Add(managedReferenceFieldTypename, result);
}
return result;
}