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:
authorCampbell Barton <ideasman42@gmail.com>2007-09-21 18:34:29 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-09-21 18:34:29 +0400
commit641fc64eb32311b712856d64413191fb16c5972d (patch)
tree69e9f8400712d5d237a3dc62b073fc0c6245ca28 /source/blender/src
parent3b4d74de38d87e6db1e2bb8e7cc2d411209dfa7b (diff)
unwrapping would crash if there was no space image
Diffstat (limited to 'source/blender/src')
-rw-r--r--source/blender/src/drawimage.c2
-rw-r--r--source/blender/src/unwrapper.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/drawimage.c b/source/blender/src/drawimage.c
index 8df5b43dc27..d0261ac1ad0 100644
--- a/source/blender/src/drawimage.c
+++ b/source/blender/src/drawimage.c
@@ -453,7 +453,7 @@ void draw_uvs_sima(void)
EditMesh *em = G.editMesh;
EditFace *efa;
- char col1[4], col2[4], efaset = 0;
+ char col1[4], col2[4];
float pointsize= BIF_GetThemeValuef(TH_VERTEX_SIZE);
if (!G.obedit || !CustomData_has_layer(&em->fdata, CD_MTFACE))
diff --git a/source/blender/src/unwrapper.c b/source/blender/src/unwrapper.c
index 005119d448d..bca7e44ed72 100644
--- a/source/blender/src/unwrapper.c
+++ b/source/blender/src/unwrapper.c
@@ -299,7 +299,7 @@ void unwrap_lscm(short seamcut)
return;
/* select new UV's */
- if ((G.sima->flag & SI_SYNC_UVSEL)==0) {
+ if ((G.sima==0 || G.sima->flag & SI_SYNC_UVSEL)==0) {
EditFace *efa;
MTFace *tf;
for(efa=em->faces.first; efa; efa=efa->next) {