Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2004-11-07 16:15:04 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2004-11-07 16:15:04 +0300
commit88534ee519f9e712839a876bb0b13165ec83904a (patch)
treea4fc3bcdf55ada1df69e7ef0b93793d4e1509fa8 /source/blender/src/editface.c
parente6060589ec9891a6b013f6f24c49f2539f8107a5 (diff)
Added some missing undo pushes for the UV editor and UV Face Select Mode.
Diffstat (limited to 'source/blender/src/editface.c')
-rw-r--r--source/blender/src/editface.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/source/blender/src/editface.c b/source/blender/src/editface.c
index 868257e3c83..16c44f5259f 100644
--- a/source/blender/src/editface.c
+++ b/source/blender/src/editface.c
@@ -467,7 +467,7 @@ void calculate_uv_map(unsigned short mapmode)
tface= me->tface;
mface= me->mface;
for(a=0; a<me->totface; a++, mface++, tface++) {
- if(!(tface->flag & TF_SELECT && mface->v3)) return;
+ if(!(tface->flag & TF_SELECT && mface->v3)) continue;
dx= dy= 0;
if(mface->v4) b= 3; else b= 2;
@@ -489,6 +489,8 @@ void calculate_uv_map(unsigned short mapmode)
}
}
+ BIF_undo_push("UV calculation");
+
allqueue(REDRAWVIEW3D, 0);
allqueue(REDRAWIMAGE, 0);
}
@@ -608,13 +610,12 @@ void reveal_tface()
tface++;
}
- BIF_undo_push("Reveil UV face");
+ BIF_undo_push("Reveal UV face");
+
allqueue(REDRAWVIEW3D, 0);
allqueue(REDRAWIMAGE, 0);
}
-
-
void hide_tface()
{
Mesh *me;
@@ -774,7 +775,7 @@ void selectswap_tface(void)
tface++;
}
- BIF_undo_push("Select swap UV face");
+ BIF_undo_push("Select inverse UV face");
allqueue(REDRAWVIEW3D, 0);
allqueue(REDRAWIMAGE, 0);
}
@@ -1003,6 +1004,9 @@ void face_borderselect()
MEM_freeN(rectm);
MEM_freeN(selar);
+
+ BIF_undo_push("Border Select UV face");
+
allqueue(REDRAWVIEW3D, 0);
allqueue(REDRAWIMAGE, 0);
}
@@ -1099,9 +1103,6 @@ void uv_autocalc_tface()
case UV_LSCM_MAPPING:
unwrap_lscm(); break;
}
-
- if(mode>0) BIF_undo_push("UV calculation");
-
}
void set_faceselect() /* toggle */
@@ -1616,8 +1617,6 @@ void get_same_uv(void)
tface++;
}
-
-
/* image window redraw */
BIF_undo_push("Get same UV");
allqueue(REDRAWIMAGE, 0);