Skip to content

Commit

Permalink
Merge pull request #54 from techno-dwarf-works/feature/refactoring
Browse files Browse the repository at this point in the history
Version 0.0.51
  • Loading branch information
uurha authored Sep 6, 2024
2 parents bd4618a + ce1dc53 commit b0f0da4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
11 changes: 4 additions & 7 deletions Assets/BetterCommons/Editor/Drawers/SerializeReferenceField.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,11 @@ private void Update()
panel?.visualTree.SendEvent(e);
}

//Fix: fixing SerializedPropertyChangeEvent not been sent when set new type to null
if (newType.IsNullOrEmpty())
//Fix: fixing SerializedPropertyChangeEvent not been sent when set new type to null or time has no sub properties
using (var e = SerializedPropertyChangeEvent.GetPooled(property))
{
using (var e = SerializedPropertyChangeEvent.GetPooled(property))
{
e.target = PropertyField;
panel?.visualTree.SendEvent(e);
}
e.target = PropertyField;
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.50",
"version": "0.0.51",
"unity": "2021.3",
"description": " ",
"dependencies": {
Expand Down

0 comments on commit b0f0da4

Please sign in to comment.