diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-08 07:14:54 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-08 07:22:15 +0300 |
commit | 46ac288a930673af3cf2a253a933f2663566295d (patch) | |
tree | 81a88134e8404977ef3d60b2e31f89c74e841600 /source/blender/blenkernel/intern/scene.c | |
parent | d86894b9e43a44ed7f9d937325e74859f254ebf2 (diff) |
Cleanup: rename V3D_MANIP_* -> V3D_ORIENT_*
Wasn't obvious it's related to orientation,
also term manipulator is no longer in use.
Diffstat (limited to 'source/blender/blenkernel/intern/scene.c')
-rw-r--r-- | source/blender/blenkernel/intern/scene.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/blenkernel/intern/scene.c b/source/blender/blenkernel/intern/scene.c index 71a9c12e99b..18e2135f947 100644 --- a/source/blender/blenkernel/intern/scene.c +++ b/source/blender/blenkernel/intern/scene.c @@ -1359,19 +1359,19 @@ TransformOrientationSlot *BKE_scene_orientation_slot_get(Scene *scene, int flag) /** * Activate a transform orientation in a 3D view based on an enum value. * - * \param orientation: If this is #V3D_MANIP_CUSTOM or greater, the custom transform orientation - * with index \a orientation - #V3D_MANIP_CUSTOM gets activated. + * \param orientation: If this is #V3D_ORIENT_CUSTOM or greater, the custom transform orientation + * with index \a orientation - #V3D_ORIENT_CUSTOM gets activated. */ void BKE_scene_orientation_slot_set_index(TransformOrientationSlot *orient_slot, int orientation) { - const bool is_custom = orientation >= V3D_MANIP_CUSTOM; - orient_slot->type = is_custom ? V3D_MANIP_CUSTOM : orientation; - orient_slot->index_custom = is_custom ? (orientation - V3D_MANIP_CUSTOM) : -1; + const bool is_custom = orientation >= V3D_ORIENT_CUSTOM; + orient_slot->type = is_custom ? V3D_ORIENT_CUSTOM : orientation; + orient_slot->index_custom = is_custom ? (orientation - V3D_ORIENT_CUSTOM) : -1; } int BKE_scene_orientation_slot_get_index(const TransformOrientationSlot *orient_slot) { - return (orient_slot->type == V3D_MANIP_CUSTOM) ? (orient_slot->type + orient_slot->index_custom) : orient_slot->type; + return (orient_slot->type == V3D_ORIENT_CUSTOM) ? (orient_slot->type + orient_slot->index_custom) : orient_slot->type; } /** \} */ @@ -2216,7 +2216,7 @@ void BKE_scene_transform_orientation_remove( TransformOrientationSlot *orient_slot = &scene->orientation_slots[i]; if (orient_slot->index_custom == orientation_index) { /* could also use orientation_index-- */ - orient_slot->type = V3D_MANIP_GLOBAL; + orient_slot->type = V3D_ORIENT_GLOBAL; orient_slot->index_custom = -1; } } |