Skip to content

Commit

Permalink
Merge pull request #40 from techno-dwarf-works/feature/refactoring
Browse files Browse the repository at this point in the history
Version 0.0.37
  • Loading branch information
uurha authored Aug 6, 2024
2 parents 2e74005 + 71b6a0f commit fb04320
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ private void ScheduleUpdateGeometry(GeometryChangedEvent changedEvent)
private void OnGeometryChanged(VisualElement element)
{
var propertyPath = SerializedProperty.propertyPath;
var builder = element.Query<PropertyField>().Where(field => field.bindingPath.CompareOrdinal(propertyPath)).Build();
var label = builder.First().Query<Label>().Class(PropertyField.labelUssClassName).First();
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 label = labels.First();
if (label != null)
{
LabelContainer.Setup(label);
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.36",
"version": "0.0.37",
"unity": "2021.3",
"description": " ",
"dependencies": {
Expand Down

0 comments on commit fb04320

Please sign in to comment.