Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-02-08 07:14:54 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-02-08 07:22:15 +0300
commit46ac288a930673af3cf2a253a933f2663566295d (patch)
tree81a88134e8404977ef3d60b2e31f89c74e841600 /source/blender/blenkernel
parentd86894b9e43a44ed7f9d937325e74859f254ebf2 (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')
-rw-r--r--source/blender/blenkernel/intern/constraint.c2
-rw-r--r--source/blender/blenkernel/intern/scene.c14
2 files changed, 8 insertions, 8 deletions
diff --git a/source/blender/blenkernel/intern/constraint.c b/source/blender/blenkernel/intern/constraint.c
index 5aa96b1168e..8d0db7578bf 100644
--- a/source/blender/blenkernel/intern/constraint.c
+++ b/source/blender/blenkernel/intern/constraint.c
@@ -464,7 +464,7 @@ static void contarget_get_mesh_mat(Object *ob, const char *substring, float mat[
/* derive the rotation from the average normal:
* - code taken from transform_gizmo.c,
- * calc_gizmo_stats, V3D_MANIP_NORMAL case
+ * calc_gizmo_stats, V3D_ORIENT_NORMAL case
*/
/* we need the transpose of the inverse for a normal... */
copy_m3_m4(imat, ob->obmat);
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;
}
}