diff options
author | Martin Poirier <theeth@yahoo.com> | 2009-10-10 21:40:56 +0400 |
---|---|---|
committer | Martin Poirier <theeth@yahoo.com> | 2009-10-10 21:40:56 +0400 |
commit | 622ffe263a61c1312e14ce74de148e7106b4b183 (patch) | |
tree | d118dd8387eea60be5ad5ffd765e319a87557a2b /release/scripts | |
parent | 811a7678276e7f0aefaf4145276a71cdd2915a26 (diff) |
Bringing back the transform orientations panel.
Orientations enum in view3d. Full list of custom orientation (RNAified) in scene.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/ui/space_view3d.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/release/scripts/ui/space_view3d.py b/release/scripts/ui/space_view3d.py index 33ae3472053..3d91f73d209 100644 --- a/release/scripts/ui/space_view3d.py +++ b/release/scripts/ui/space_view3d.py @@ -1256,8 +1256,15 @@ class VIEW3D_PT_transform_orientations(bpy.types.Panel): view = context.space_data col = layout.column() - col.itemO("TFM_OT_select_orientation", text="Select") + + col.itemR(view, "transform_orientation") col.itemO("TFM_OT_create_orientation", text="Create") + +# orientation_index = view.__rna__.properties["transform_orientation"].items[view.transform_orientation].value +# +# if orientation_index >= 4: +# orientation = context.scene.orientations[orientation_index - 4] +# col.itemR(orientation, "name") col.itemO("TFM_OT_delete_orientation", text="Delete") # Operators |