Skip to content

Commit

Permalink
Merge pull request #221 from hitsub/bugfix/merge-physbone-editor
Browse files Browse the repository at this point in the history
Apply modified properties before draw custom editor
  • Loading branch information
anatawa12 authored Jun 13, 2023
2 parents 5a8b77a + 990ad54 commit a8685f6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-PRERELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog].
### Removed

### Fixed
- Dropping PhysBone to MergePhysBone is not working `#221`

### Security

Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The format is based on [Keep a Changelog].
### Removed

### Fixed
- Dropping PhysBone to MergePhysBone is not working `#221`

### Security

Expand Down
4 changes: 4 additions & 0 deletions Editor/MergePhysBoneEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ protected override void OnInspectorGUIInner()

EditorGUILayout.PropertyField(_componentsSetProp);

// on DragPerform, in DoProcess, new HelpBox invocation throws ExitGUIException
// so I ApplyModifiedProperties here.
serializedObject.ApplyModifiedProperties();

// draw custom editor
_renderer.DoProcess();

Expand Down

0 comments on commit a8685f6

Please sign in to comment.