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 19:10:41 +0400
committerCampbell Barton <ideasman42@gmail.com>2007-09-23 19:10:41 +0400
commitae59f0aa8f758eb97b42a880f8bccab3fdb27560 (patch)
tree45c5203f6b41f5a4917116bdd675ebb2d9a213f2 /source/blender/src/drawimage.c
parent37a8e56bf0a4e98de3682bdb260132a9fa4c5d45 (diff)
drawimage wasnt updating when shadow mesh was enabled
transform manipulator was shown in sculpt mode which is inconsistant sicne G key dosnt work and other painting modes have this disabled. - thanks theeth for finding this.
Diffstat (limited to 'source/blender/src/drawimage.c')
-rw-r--r--source/blender/src/drawimage.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/src/drawimage.c b/source/blender/src/drawimage.c
index 7fb6604b2fc..5bc8dad86af 100644
--- a/source/blender/src/drawimage.c
+++ b/source/blender/src/drawimage.c
@@ -406,6 +406,8 @@ static void drawcursor_sima(float xuser_asp, float yuser_asp)
int wi, hi;
float w, h;
+ if (!G.obedit) return;
+
transform_width_height_tface_uv(&wi, &hi);
w = (((float)wi)/256.0f)*G.sima->zoom * xuser_asp;
h = (((float)hi)/256.0f)*G.sima->zoom * yuser_asp;
@@ -1794,7 +1796,7 @@ void drawimagespace(ScrArea *sa, void *spacedata)
* are normally done in drawview and could get here before
* drawing a View3D.
*/
- if (!G.obedit && OBACT && (sima->flag & SI_DRAWSHADOW)) {
+ if (G.obedit && OBACT && (sima->flag & SI_DRAWSHADOW)) {
object_handle_update(OBACT);
}