Skip to content

Commit

Permalink
Merge pull request #41 from techno-dwarf-works/feature/refactoring
Browse files Browse the repository at this point in the history
Version 0.0.38
  • Loading branch information
uurha authored Aug 6, 2024
2 parents fb04320 + adb4d6b commit 2232e11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,11 @@ private void OnGeometryChanged(VisualElement element)
var propertyPath = SerializedProperty.propertyPath;
var propertyFields = element.Query<PropertyField>().Where(field => field.bindingPath.CompareOrdinal(propertyPath)).Build();
var parentField = propertyFields.First();
var labels = parentField.Query<Label>().Class(PropertyField.labelUssClassName).Where(field => field.parent.Equals(parentField));
var labels = parentField.Query<Label>().Class(PropertyField.labelUssClassName).Where(field =>
{
var firstAncestor = field.GetFirstAncestorOfType<PropertyField>();
return firstAncestor != null && firstAncestor.Equals(parentField);
});
var label = labels.First();
if (label != null)
{
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.37",
"version": "0.0.38",
"unity": "2021.3",
"description": " ",
"dependencies": {
Expand Down

0 comments on commit 2232e11

Please sign in to comment.