Blender Git Loki

Git Commits -> Revision d660e29

Revision d660e29 by Martin Poirier (master)
January 13, 2008, 18:24 (GMT)
=== Custom Transform Orientation ===

Custom Orientations can be added with Ctrl-Shift-C (hotkey suggestions are welcomed), this adds and select the new alignment. Custom Orientations can also be added, deleted, selected from the Transform Orientations panel (View -> Transform Orientations). Standard orientations (global, local, normal, view) can also be selected from this panel.

If you plan on using only a single custom orientation and don't really need a list, I suggest you use the hotkey as it adds and selects at the same time.

Custom Orientations are save in the scene and are selected per 3D view (like normal orientation).

Adding from an object, the orientation is a normalized version of the object's orientation.
Adding from mesh data, a single element (vertex, edge, face) must be selected in its respective selection mode. Vertex orientation Z-axis is based on the normal, edge Z-axis on the edge itself (X-axis is on the XoY plane when possible, Y-axis is perpendicular to the rest). Face orientation Z-axis is the face normal, X-axis is perpendicular to the first edge, Y-axis is perpendicular to the rest.
(More logical orientations can be suggested).

I plan to add: 2 vertice (connected or not) => edge orientation , 3 vertice = face orientation

Differences from the patch:
- orientations no longer link back to the object they came from, everything is copy on creation.
- orientations are overwritten based on name (if you add an orientation with the same name as one that already exists, it overwrites the old one)

Commit Details:

Full Hash: d660e293650d88e00009ad315fb00ade71239621
SVN Revision: 13223
Parent Commit: 67de673
Lines Changed: +451, -10

17 Modified Paths:

/source/blender/blenkernel/intern/scene.c (+1, -0) (Diff)
/source/blender/blenloader/intern/readfile.c (+1, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+5, -0) (Diff)
/source/blender/include/BIF_space.h (+1, -0) (Diff)
/source/blender/include/BIF_transform.h (+14, -0) (Diff)
/source/blender/include/blendef.h (+1, -0) (Diff)
/source/blender/include/butspace.h (+2, -0) (Diff)
/source/blender/include/transform.h (+9, -0) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+8, -1) (Diff)
/source/blender/makesdna/DNA_view3d_types.h (+1, -0) (Diff)
/source/blender/src/drawview.c (+77, -0) (Diff)
/source/blender/src/header_info.c (+1, -0) (Diff)
/source/blender/src/header_view3d.c (+13, -2) (Diff)
/source/blender/src/space.c (+4, -0) (Diff)
/source/blender/src/transform.c (+306, -7) (Diff)
/source/blender/src/transform_constraints.c (+4, -0) (Diff)
/source/blender/src/transform_manipulator.c (+3, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021