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 committed Aug 6, 2024
1 parent e7d97ab commit 828f488
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Editor/Drawers/Container/ElementsContainer.cs
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 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 828f488

Please sign in to comment.