v9.6.3
9.6.3 (2019-12-02)
Bug Fixes
- MemberChange: prevent Before/AfterChange being called at edit time (7d6077b), closes /github.com/ExtendRealityLtd/Malimbe/blob/master/Sources/FodyRunner.UnityIntegration/InspectorEditor.cs#L85-L88
There was a previous fix (40baf00) that attempted to fix the following issue: (This is being described in detail as the message on the other commit is unhelpful).
The Malimbe custom Unity InspectorEditor would only run the
BeforeChange
andAfterChange
methods when valid ChangeHandler attributes were found in the component (e.g.OnBeforeChange()
andOnAfterChange()
. However, when using a Zinnia ObservableList it would not raise the component events when the Elements array was updated in the inspector.This is due to the Zinnia ObservableList using a custom inspector (
ObservableListEditor
) which extends the Malimbe InspectorEditor and overrides theBeforeChange()
andAfterChange()
methods to raise events when the list elements have items added/removed from them.The problem rose from the ObservableList component does not contain any ChangeHandler attributes and therefore the
ChangeHandlerMethodInfos
would be empty and so the check in theOnInspectorGUI()
method