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-23 14:38:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-09-23 14:38:09 +0400
commit3e40c994bbd46ec6c7f82d1d1aacac04520e9c37 (patch)
tree69e72be87ee104cfe3187347a7d423ad62ba4480 /source/blender/src/editface.c
parentdf051fbc13aa113953d0b1139a38ff5c1545a9fa (diff)
missing null check
Diffstat (limited to 'source/blender/src/editface.c')
-rw-r--r--source/blender/src/editface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/editface.c b/source/blender/src/editface.c
index 516928af14e..f5ce9128790 100644
--- a/source/blender/src/editface.c
+++ b/source/blender/src/editface.c
@@ -367,7 +367,7 @@ void calculate_uv_map(unsigned short mapmode)
return;
/* select new UV's */
- if ((G.sima->flag & SI_SYNC_UVSEL)==0) {
+ if ((G.sima && G.sima->flag & SI_SYNC_UVSEL)==0) {
for(efa=em->faces.first; efa; efa=efa->next) {
MTFace *tf= (MTFace *)CustomData_em_get(&em->fdata, efa->data, CD_MTFACE);
SIMA_FACESEL_SET(efa, tf);
@@ -396,7 +396,7 @@ void calculate_uv_map(unsigned short mapmode)
}
}
- /* rescale UV to be in 0..1,1/2,1/4,1/8 */
+ /* rescale UV to be in 1/1 */
dx= (max[0]-min[0]);
dy= (max[1]-min[1]);