UI: expose gizmo orientation as a single enum
[blender.git] / release / scripts / startup / bl_ui / space_toolsystem_toolbar.py
index 6a2de414ae7b28264965d0139eee41f3cbd056ee..24af3ce13188ca57a8c5aca45a6eaf98218da940 100644 (file)
@@ -69,23 +69,7 @@ class _template_widget:
         def draw_settings_with_index(context, layout, index):
             scene = context.scene
             orient_slot = scene.transform_orientation_slots[index]
-            use_global = orient_slot.use_global
-            row = layout.row(align=True)
-
-            row.label(text="Orientation:")
-
-            popover_kw = {
-                "panel": "VIEW3D_PT_transform_orientations_gizmo_" f"{index}",
-            }
-
-            if use_global:
-                popover_kw["text"], popover_kw["icon"] = "Scene", 'OBJECT_ORIGIN'
-            else:
-                popover_kw["text"], popover_kw["icon_value"] = orient_slot.ui_info()
-
-            sub = layout.row()
-            sub.ui_units_x = 4
-            sub.popover(**popover_kw)
+            layout.prop(orient_slot, "type")
 
 
 class _defs_view3d_generic: