[Bf-blender-cvs] [ca9bdf3] master: Fix rotate around selection only working if object is at origin for texpaint
Antony Riakiotakis
noreply at git.blender.org
Fri Jan 9 13:28:02 CET 2015
Commit: ca9bdf3f286a4c01eb2da1a5689b71737636f659
Author: Antony Riakiotakis
Date: Fri Jan 9 13:21:25 2015 +0100
Branches: master
https://developer.blender.org/rBca9bdf3f286a4c01eb2da1a5689b71737636f659
Fix rotate around selection only working if object is at origin for
texpaint
===================================================================
M source/blender/editors/sculpt_paint/paint_image_proj.c
===================================================================
diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c
index 12240be..9d05827 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;
}
More information about the Bf-blender-cvs
mailing list