Eek! Commit for 'making transform aware for mesh select mode' caused all

other editmodes to crash in transform()!
This commit is contained in:
2004-09-28 10:16:13 +00:00
parent f3c7fdd80e
commit 60d53c9e03

View File

@@ -3868,11 +3868,11 @@ void make_trans_verts(float *min, float *max, int mode)
/* note for transform refactor: dont rely on countall anymore... its ancient */
/* I skip it for editmesh now (ton) */
if(em==NULL) {
if(G.obedit->type!=OB_MESH) {
countall();
if(mode) tottrans= G.totvert;
else tottrans= G.totvertsel;
if(G.totvertsel==0) {
tottrans= 0;
return;