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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user