From 28b3da67cb78e7e048fed15ac1433af22665f055 Mon Sep 17 00:00:00 2001 From: uurha Date: Sat, 10 Aug 2024 22:53:54 +0000 Subject: [PATCH] Merge pull request #42 from techno-dwarf-works/feature/refactoring Version 0.0.39 --- Editor/Drawers/Container/ElementsContainer.cs | 9 +++------ package.json | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/Editor/Drawers/Container/ElementsContainer.cs b/Editor/Drawers/Container/ElementsContainer.cs index 7516b2c..5ff8fd5 100644 --- a/Editor/Drawers/Container/ElementsContainer.cs +++ b/Editor/Drawers/Container/ElementsContainer.cs @@ -116,15 +116,12 @@ private void ScheduleUpdateGeometry(GeometryChangedEvent changedEvent) element.schedule.Execute(() => OnGeometryChanged(element)); } - private void OnGeometryChanged(VisualElement element) + private void OnGeometryChanged(PropertyField propertyField) { - var propertyPath = SerializedProperty.propertyPath; - var propertyFields = element.Query().Where(field => field.bindingPath.CompareOrdinal(propertyPath)).Build(); - var parentField = propertyFields.First(); - var labels = parentField.Query