3D View: support for editing cursor rotation

Add buttons for editing the cursor rotation as well as rotation modes,
similar to object and pose bones.
This commit is contained in:
2019-02-26 00:58:35 +11:00
parent 213ac7b1ac
commit 86c0ee8020
11 changed files with 263 additions and 26 deletions

View File

@@ -4329,6 +4329,14 @@ class VIEW3D_PT_view3d_cursor(Panel):
scene = context.scene
layout.column().prop(scene, "cursor_location", text="Location")
rotation_mode = scene.cursor_rotation_mode
if rotation_mode == 'QUATERNION':
layout.column().prop(scene, "cursor_rotation_quaternion", text="Rotation")
elif rotation_mode == 'AXIS_ANGLE':
layout.column().prop(scene, "cursor_rotation_axis_angle", text="Rotation")
else:
layout.column().prop(scene, "cursor_rotation_euler", text="Rotation")
layout.row().prop(scene, "cursor_rotation_mode")
class VIEW3D_PT_collections(Panel):