From --> To
Struct Members:
| snapTarget | snap_source |
| snapPoint | snap_target |
| snapTargetGrid | snap_target_grid |
| calcSnap | snap_target_fn |
| targetSnap | snap_source_fn |
| applySnap | snap_mode_apply_fn |
| distance | snap_mode_distance_fn |
| source_select | source_operation |
| target_select | target_operation |
Functions:
| snap_calc_view3d_fn | snap_target_view3d_fn |
| snap_calc_uv_fn | snap_target_uv_fn |
| snap_calc_node_fn | snap_target_node_fn |
| snap_calc_sequencer_fn | snap_target_sequencer_fn |
| TargetSnapMedian | snap_source_median_fn |
| TargetSnapCenter | snap_source_center_fn |
| TargetSnapClosest | snap_source_closest_fn |
| TargetSnapActive | snap_source_active_fn |
Enums:
| TARGET_INIT | SOURCE_FOUND |
| TARGET_GRID_INIT | TARGET_GRID_FOUND |
| POINT_INIT | TARGET_FOUND |
Types:
| eSnapSourceOPSelect | eSnapSourceOP |
| eSnapTargetSelect | eSnapTargetOP |
The definition of source and target of snap has always been confusing in transform code.
To give you an idea, one of the first changes to improve the situation was to rename the UI Snap Target to Snap With.
However, in a target shooting game, the target is usually the object that is still. Therefore it is more expected that the target is the point in the scene whose transformed element will move to "hit".
And the element that moves, usually pointed to first by the arrow, is the source.
This patch also proposes to rename Selection to Operation.