From 7d055da327b9555f76035075ce4e228d31f04df4 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 18 Apr 2018 09:12:44 +0200 Subject: Move transform orientation to scene This was stored in the workspace, selected from the view. Move both to scene since custom orientations are closely related to your scene data. --- source/blender/blenkernel/BKE_scene.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/blender/blenkernel/BKE_scene.h') diff --git a/source/blender/blenkernel/BKE_scene.h b/source/blender/blenkernel/BKE_scene.h index afb77bb5206..8036673cbdf 100644 --- a/source/blender/blenkernel/BKE_scene.h +++ b/source/blender/blenkernel/BKE_scene.h @@ -48,6 +48,7 @@ struct ViewLayer; struct UnitSettings; struct ViewRender; struct WorkSpace; +struct TransformOrientation; typedef enum eSceneCopyMethod { SCE_COPY_NEW = 0, @@ -211,6 +212,13 @@ void BKE_scene_free_depsgraph_hash(struct Scene *scene); struct Depsgraph *BKE_scene_get_depsgraph(struct Scene *scene, struct ViewLayer *view_layer, bool allocate); +void BKE_scene_transform_orientation_remove( + struct Scene *scene, struct TransformOrientation *orientation); +struct TransformOrientation *BKE_scene_transform_orientation_find( + const struct Scene *scene, const int index); +int BKE_scene_transform_orientation_get_index( + const struct Scene *scene, const struct TransformOrientation *orientation); + #ifdef __cplusplus } #endif -- cgit v1.2.3