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
path: root/source
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2015-01-09 15:21:25 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-01-09 15:27:49 +0300
commitca9bdf3f286a4c01eb2da1a5689b71737636f659 (patch)
tree6a1c2adb3967c9cb1c8c8e636495168286c202d5 /source
parent62cc4bab083893a85e451ab96455c9be60c04cc1 (diff)
Fix rotate around selection only working if object is at origin for
texpaint
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image_proj.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c
index 12240be1689..9d0582701d2 100644
--- a/source/blender/editors/sculpt_paint/paint_image_proj.c
+++ b/source/blender/editors/sculpt_paint/paint_image_proj.c
@@ -4544,6 +4544,7 @@ static bool project_paint_op(void *state, const float lastpos[2], const float po
}
ups->average_stroke_counter++;
+ mul_m4_v3(ps->ob->obmat, world);
add_v3_v3(ups->average_stroke_accum, world);
ups->last_stroke_valid = true;
}