Snap System: Fixed index of objects used to make `snap to volume`

*note: make a complete test scene
This commit is contained in:
Germano Cavalcante 2017-07-14 17:25:16 -03:00
parent 08b59ab7b9
commit 8009564503
Notes: blender-bot 2023-02-14 10:43:47 +01:00
Referenced by issue #52076, Boolean. Change BMesh to Carve = crush
Referenced by issue #52077, Edge Bevel wight color dont displeyed in viewport
Referenced by issue #52069, Denoise producing artifact with high contrast pixel
1 changed files with 2 additions and 2 deletions

View File

@ -785,7 +785,7 @@ struct RaycastObjUserData {
const float *ray_start;
const float *ray_dir;
const float *depth_range;
const unsigned int ob_index;
unsigned int ob_index;
/* read/write args */
float *ray_depth;
/* return args */
@ -804,7 +804,7 @@ static void raycast_obj_cb(SnapObjectContext *sctx, bool is_obedit, Object *ob,
dt->ret |= raycastObj(
sctx,
dt->ray_orig, dt->ray_start, dt->ray_dir, dt->depth_range,
ob, obmat, dt->ob_index, is_obedit,
ob, obmat, dt->ob_index++, is_obedit,
dt->ray_depth,
dt->r_loc, dt->r_no, dt->r_index,
dt->r_ob, dt->r_obmat,