Snap System: Separate raycast functions from nearest2d functions
authormano-wii <germano.costa@ig.com.br>
Tue, 11 Jul 2017 16:47:28 +0000 (13:47 -0300)
committermano-wii <germano.costa@ig.com.br>
Tue, 11 Jul 2017 16:47:28 +0000 (13:47 -0300)
commitdd1edb0954b5441255b5a3616841228f466e448e
treeda0948e2fae14b5e0f5cd2f584ed311081b0425d
parent32edfd53d978b34c9eb528e705f29e3feb673d37
Snap System: Separate raycast functions from nearest2d functions

The only similarity between these functions is that both serve to snap.
However their codes are totally different from one another.
So by separating these functions, it:
- removes the need to put several conditions;
- simplifies and
- optimizes the code
source/blender/editors/include/ED_transform_snap_object_context.h
source/blender/editors/transform/transform_snap_object.c
source/blender/makesrna/intern/rna_scene_api.c
source/blenderplayer/bad_level_call_stubs/stubs.c