Blender Git Commit Log

Git Commits -> Revision 317b8d9

Revision 317b8d9 by Campbell Barton (master)
August 11, 2017, 01:23 (GMT)
Transform: Snap used multiple eval contexts

Changes for 2.8x to use EvaluationContext caused some confusion

- Would use scene layer passed from snap context.
- Would generate duplis from Main eval context.
- Would take context argument and use it to create another eval context.

Adding context args all over and filling in a new eval-context
for every ray-cast test isn't ideal either.

Remove the context argument since the purpose of
SnapObjectContext is to avoid this kind of confusion.
Store the EvaluationContext once and re-use.

Commit Details:

Full Hash: 317b8d96690cec6255a1e954ba642b08ef5d54fb
Parent Commit: d1328fe
Lines Changed: +77, -83

10 Modified Paths:

/source/blender/editors/armature/editarmature_sketch.c (+2, -2) (Diff)
/source/blender/editors/curve/editcurve.c (+1, -1) (Diff)
/source/blender/editors/include/ED_transform.h (+1, -1) (Diff)
/source/blender/editors/include/ED_transform_snap_object_context.h (+7, -7) (Diff)
/source/blender/editors/mesh/editmesh_tools.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/view3d_ruler.c (+7, -7) (Diff)
/source/blender/editors/space_view3d/view3d_walk.c (+7, -7) (Diff)
/source/blender/editors/transform/transform_snap.c (+4, -4) (Diff)
/source/blender/editors/transform/transform_snap_object.c (+45, -50) (Diff)
/source/blender/makesrna/intern/rna_scene_api.c (+2, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021