fixed deleting xforms with "solo" on

This commit is contained in:
zueuk 2008-08-12 13:21:22 +00:00
parent 9539b0c70a
commit 5296ffcb88

View File

@ -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;