diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-05-13 14:04:04 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-05-13 14:04:04 +0400 |
commit | 33120a18250ab088be663305ff8542a729f00cb4 (patch) | |
tree | 2b2c1c73d6f53ecfc495fea830d0b672cbb3752d /source/blender/src/drawimage.c | |
parent | 4e59c3ec5347fa11b34d3795c0da3acc900a6594 (diff) |
disabled drawing the 2d image cursor when painting, added copy bevel weight to the edge copy menu.
Diffstat (limited to 'source/blender/src/drawimage.c')
-rw-r--r-- | source/blender/src/drawimage.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/src/drawimage.c b/source/blender/src/drawimage.c index d8e94bd2ff7..547de85e856 100644 --- a/source/blender/src/drawimage.c +++ b/source/blender/src/drawimage.c @@ -367,7 +367,10 @@ static void drawcursor_sima(float xuser_asp, float yuser_asp) int wi, hi; float w, h; - if (!G.obedit || !CustomData_has_layer(&G.editMesh->fdata, CD_MTFACE)) return; + if ( !G.obedit || /* only draw cursor in editmode */ + !CustomData_has_layer(&G.editMesh->fdata, CD_MTFACE) || /* must have UV's */ + (G.sima->image && G.sima->flag & SI_DRAWTOOL) /* cant be painting */ + ) return; transform_width_height_tface_uv(&wi, &hi); w = (((float)wi)/256.0f)*G.sima->zoom * xuser_asp; |