Skip to content

Commit 71c855d

Browse files
committed
Attempt to fix SerializedProperty iterator errors
1 parent 5796f89 commit 71c855d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Assets/Editor Toolbox/Editor/ToolboxEditorGui.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,12 @@ public static void DrawPropertyChildren(SerializedProperty property, Action<Seri
531531
enterChildren = false;
532532
var childProperty = targetProperty.Copy();
533533
//handle current property using Toolbox features
534+
EditorGUI.BeginChangeCheck();
534535
drawElementAction(childProperty);
536+
if (EditorGUI.EndChangeCheck())
537+
{
538+
break;
539+
}
535540
}
536541
}
537542

0 commit comments

Comments
 (0)