Skip to content

Conversation

@marc-antoine-girard
Copy link
Contributor

@marc-antoine-girard marc-antoine-girard commented Jul 12, 2022

Description

  • For RawReferenceDrawer.cs, needed to handle Drag and drop even if rawReference was null.
  • In ReferenceDrawer.HandleDragAndDrop(), it would process drag and drop even if the mouse was outside the property
    • Now only updates when on the property.
    • The HandleDragUpdated() must be done before HandleDragPerform(), otherwise, the mode will always be None.

This fixes #22

Note

A thing we noted is that, in lists and arrays, SerializableInterfaces are always defaulted at ReferenceMode.Raw, while fields are defaulted at ReferenceMode.Unity. But then, switching the enum's value ( { Unity, Raw } instead of { Raw, Unity } ), defaults them at ReferenceMode.Unity.
Oh well.

Copy link
Owner

@Thundernerd Thundernerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but it seems there is a merge conflict. Once this has been resolved I'll merge the PR

@Thundernerd Thundernerd merged commit 05908da into Thundernerd:main Jul 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ArgumentOutOfRangeException when performing Drag and Drop

2 participants