Blender Git Commit Log

Git Commits -> Revision 46fc0bb

Revision 46fc0bb by Julian Eisel (master)
June 1, 2017, 18:46 (GMT)
Move custom transform orientations to workspace

This commit moves the list of transform orientations from scenes to workspaces.
Main reasons for this are:
* Transform orientations are UI data and should not be stored in the scene.
* Introducion of workspaces caused some (expected) glitches with transform orientations. Mainly when removing one.
* Improves code.

More technically speaking, this commit does:
* Move list of custom transform orientations from Scene to WorkSpace struct.
* Store active transform orientation index separate from View3D.twmode (twmode can only be set to preprocessor defined values now).
* Display custom transform orientation name in header when transforming in it (used to show "global" which isn't really correct).

Commit Details:

Full Hash: 46fc0bb87ebda166d08b23cbcca799acb2c54158
Parent Commit: 7f564d7
Lines Changed: +300, -189

25 Modified Paths:

/source/blender/blenkernel/BKE_screen.h (+5, -2) (Diff)
/source/blender/blenkernel/BKE_workspace.h (+10, -1) (Diff)
/source/blender/blenkernel/intern/scene.c (+1, -3) (Diff)
/source/blender/blenkernel/intern/screen.c (+12, -24) (Diff)
/source/blender/blenkernel/intern/workspace.c (+33, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+8, -4) (Diff)
/source/blender/blenloader/intern/versioning_280.c (+22, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+2, -5) (Diff)
/source/blender/editors/include/ED_transform.h (+2, -1) (Diff)
/source/blender/editors/screen/workspace_edit.c (+3, -0) (Diff)
/source/blender/editors/transform/transform.c (+16, -8) (Diff)
/source/blender/editors/transform/transform.h (+2, -1) (Diff)
/source/blender/editors/transform/transform_constraints.c (+8, -3) (Diff)
/source/blender/editors/transform/transform_generics.c (+18, -4) (Diff)
/source/blender/editors/transform/transform_manipulator.c (+6, -2) (Diff)
/source/blender/editors/transform/transform_ops.c (+7, -13) (Diff)
/source/blender/editors/transform/transform_orientations.c (+44, -55) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+3, -14) (Diff)
/source/blender/makesdna/DNA_screen_types.h (+7, -0) (Diff)
/source/blender/makesdna/DNA_view3d_types.h (+4, -2) (Diff)
/source/blender/makesdna/dna_workspace_types.h (+3, -0) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+0, -25) (Diff)
/source/blender/makesrna/intern/rna_space.c (+45, -22) (Diff)
/source/blender/makesrna/intern/rna_workspace.c (+38, -0) (Diff)
/source/blenderplayer/bad_level_call_stubs/stubs.c (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021