Skip to content

Commit

Permalink
Merge pull request #43 from techno-dwarf-works/feature/refactoring
Browse files Browse the repository at this point in the history
Version 0.0.40
  • Loading branch information
uurha authored Aug 11, 2024
2 parents 61573cd + c25f62e commit 94528cc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,12 @@ private void ScheduleUpdateGeometry(GeometryChangedEvent changedEvent)
{
if (changedEvent.target is not PropertyField element) return;

element.schedule.Execute(() => OnGeometryChanged(element));
element.schedule.Execute(OnGeometryChanged);
}

private void OnGeometryChanged(PropertyField propertyField)
private void OnGeometryChanged()
{
var labels = propertyField.Query<Label>().Class(PropertyField.labelUssClassName).Where(field =>
{
var firstAncestor = field.GetFirstAncestorOfType<PropertyField>();
return firstAncestor != null && firstAncestor.Equals(propertyField);
});
var label = labels.First();
var label = RootElement.Query<Label>().Class(PropertyField.labelUssClassName).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.39",
"version": "0.0.40",
"unity": "2021.3",
"description": " ",
"dependencies": {
Expand Down

0 comments on commit 94528cc

Please sign in to comment.