We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5888eaf commit 9b7d07cCopy full SHA for 9b7d07c
1 file changed
src/DynamoCore/Models/DynamoModel.cs
@@ -2793,12 +2793,19 @@ internal void UngroupModel(List<ModelBase> modelsToUngroup)
2793
CurrentWorkspace.RecordGroupModelBeforeUngroup(annotation);
2794
if (list.Remove(model))
2795
{
2796
- if (model is ConnectorPinModel pinModel)
+ if (!list.Any(n => n is not ConnectorPinModel))
2797
2798
- annotation.MarkPinAsRemoved(pinModel);
+ emptyGroup.Add(annotation);
2799
+ }
2800
+ else
2801
+ {
2802
+ if (model is ConnectorPinModel pinModel)
2803
2804
+ annotation.MarkPinAsRemoved(pinModel);
2805
2806
+ annotation.Nodes = list;
2807
+ annotation.UpdateBoundaryFromSelection();
2808
}
- annotation.Nodes = list;
- annotation.UpdateBoundaryFromSelection();
2809
2810
2811
else
0 commit comments