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:
-rw-r--r--source/blender/editors/sculpt_paint/sculpt.c2
-rw-r--r--source/blender/editors/space_view3d/view3d_draw.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/sculpt_paint/sculpt.c b/source/blender/editors/sculpt_paint/sculpt.c
index a0b6bd5ca20..eea6e2ec389 100644
--- a/source/blender/editors/sculpt_paint/sculpt.c
+++ b/source/blender/editors/sculpt_paint/sculpt.c
@@ -3949,7 +3949,7 @@ static void sculpt_update_cache_invariants(bContext *C, Sculpt *sd, SculptSessio
cache->gravity_direction[2] = 1.0;
}
- /* transform to sculpted object space by inverting object rotation matrix */
+ /* transform to sculpted object space */
mul_m3_v3(mat, cache->gravity_direction);
normalize_v3(cache->gravity_direction);
diff --git a/source/blender/editors/space_view3d/view3d_draw.c b/source/blender/editors/space_view3d/view3d_draw.c
index 5d50d9d479f..ea07873a9cf 100644
--- a/source/blender/editors/space_view3d/view3d_draw.c
+++ b/source/blender/editors/space_view3d/view3d_draw.c
@@ -3396,7 +3396,7 @@ static void view3d_main_area_draw_info(const bContext *C, ARegion *ar, const cha
{
Brush *br = BKE_paint_brush(&scene->toolsettings->imapaint.paint);
- if (br && br->imagepaint_tool == PAINT_TOOL_CLONE)
+ if (br && (br->imagepaint_tool == PAINT_TOOL_CLONE))
drawcursor(scene, ar, v3d);
break;