Skip to content

Commit

Permalink
Merge pull request #52 from techno-dwarf-works/feature/refactoring
Browse files Browse the repository at this point in the history
Version 0.0.49
  • Loading branch information
uurha authored Sep 6, 2024
2 parents a6e80c8 + 6826c57 commit 0c030df
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Assets/BetterCommons/Editor/Drawers/SerializeReferenceField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,16 @@ private void Update()
panel?.visualTree.SendEvent(e);
}

//Fix: fixing SerializedPropertyChangeEvent not been sent when set new type to null
if (newType.IsNullOrEmpty())
{
using (var e = SerializedPropertyChangeEvent.GetPooled(property))
{
e.target = this;
panel?.visualTree.SendEvent(e);
}
}

_referenceType = newType;
}

Expand Down
2 changes: 1 addition & 1 deletion Assets/BetterCommons/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.tdw.better.commons",
"displayName": "Better Commons",
"version": "0.0.48",
"version": "0.0.49",
"unity": "2021.3",
"description": " ",
"dependencies": {
Expand Down

0 comments on commit 0c030df

Please sign in to comment.