"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "source/blender/editors/sculpt_paint/paint_stroke.c" between
blender-2.93.0.tar.xz and blender-2.93.1.tar.xz

About: Blender is a 3D graphics creation suite allowing modeling, animation, rendering, post-production, realtime interactive 3D and game creation and playback with cross-platform compatibility. LTS (Long Term Support) release.

paint_stroke.c  (blender-2.93.0.tar.xz):paint_stroke.c  (blender-2.93.1.tar.xz)
skipping to change at line 1194 skipping to change at line 1194
const float new_pos[2]) const float new_pos[2])
{ {
UnifiedPaintSettings *ups = stroke->ups; UnifiedPaintSettings *ups = stroke->ups;
Paint *paint = BKE_paint_get_active_from_context(C); Paint *paint = BKE_paint_get_active_from_context(C);
Brush *brush = BKE_paint_brush(paint); Brush *brush = BKE_paint_brush(paint);
ePaintMode mode = BKE_paintmode_get_active_from_context(C); ePaintMode mode = BKE_paintmode_get_active_from_context(C);
ARegion *region = CTX_wm_region(C); ARegion *region = CTX_wm_region(C);
const bool use_scene_spacing = paint_stroke_use_scene_spacing(brush, mode); const bool use_scene_spacing = paint_stroke_use_scene_spacing(brush, mode);
float mouse[2], dmouse[2]; float mouse[3], dmouse[2];
float length; float length;
float d_world_space_position[3] = {0.0f}; float d_world_space_position[3] = {0.0f};
float world_space_position_old[3], world_space_position_new[3]; float world_space_position_old[3], world_space_position_new[3];
copy_v2_v2(stroke->last_mouse_position, old_pos); copy_v2_v2(stroke->last_mouse_position, old_pos);
if (use_scene_spacing) { if (use_scene_spacing) {
bool hit_old = SCULPT_stroke_get_location(C, world_space_position_old, old_p os); bool hit_old = SCULPT_stroke_get_location(C, world_space_position_old, old_p os);
bool hit_new = SCULPT_stroke_get_location(C, world_space_position_new, new_p os); bool hit_new = SCULPT_stroke_get_location(C, world_space_position_new, new_p os);
mul_m4_v3(stroke->vc.obact->obmat, world_space_position_old); mul_m4_v3(stroke->vc.obact->obmat, world_space_position_old);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)