From 5296ffcb88712091706a59073a4301ad1fbe6095 Mon Sep 17 00:00:00 2001 From: zueuk Date: Tue, 12 Aug 2008 13:21:22 +0000 Subject: [PATCH] fixed deleting xforms with "solo" on --- 2.10/Source/Editor.pas | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/2.10/Source/Editor.pas b/2.10/Source/Editor.pas index 2dc811c..21ed392 100644 --- a/2.10/Source/Editor.pas +++ b/2.10/Source/Editor.pas @@ -1065,6 +1065,7 @@ begin modWeights[Transforms-1] := 1; end; // + if t = (Transforms - 1) then begin MainTriangles[t] := MainTriangles[Transforms]; @@ -1079,6 +1080,10 @@ begin cp.xform[i].Assign(cp.xform[i + 1]); end; end; + + if cp.soloXform > t then Dec(cp.soloXform) + else if cp.soloXform = t then cp.soloXform := -1; + Dec(Transforms); assert(cp.xform[transforms].density = 0); // cp.xform[transforms].density := 0; end;