diff options
author | Peter Kim <pk15950@gmail.com> | 2022-03-25 07:22:50 +0300 |
---|---|---|
committer | Peter Kim <pk15950@gmail.com> | 2022-03-25 07:22:50 +0300 |
commit | 5aa25f6a3f0a41aef27d6e477ad8b2e2771b000f (patch) | |
tree | 74b20a4c6d5d76a816af40561d6d0670c01e297f /viewport_vr_preview/gui.py | |
parent | d6f0fb5b17f00c1c498f9afa8775bf8502b97778 (diff) |
VR: Add "Camera Landmark from Session" operator
Creates a new camera and "Custom Object"-type landmark from the VR
headset pose.
In contrast to the existing "Landmark from Session" operator that only
saves the headset rotation around the global z-axis, this preserves the
exact rotation of the headset by assigning it to the newly-created
camera (although the landmark itself still only inherits the z-rotation
component).
Diffstat (limited to 'viewport_vr_preview/gui.py')
-rw-r--r-- | viewport_vr_preview/gui.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/viewport_vr_preview/gui.py b/viewport_vr_preview/gui.py index 163cbd48..376e9de8 100644 --- a/viewport_vr_preview/gui.py +++ b/viewport_vr_preview/gui.py @@ -88,6 +88,7 @@ class VIEW3D_MT_vr_landmark_menu(Menu): def draw(self, _context): layout = self.layout + layout.operator("view3d.vr_camera_landmark_from_session") layout.operator("view3d.vr_landmark_from_camera") layout.operator("view3d.update_vr_landmark") layout.separator() @@ -156,7 +157,7 @@ class VIEW3D_PT_vr_landmarks(Panel): "base_scale", text="Scale") -### View. +### Actions. class VIEW3D_PT_vr_actionmaps(Panel): bl_space_type = 'VIEW_3D' bl_region_type = 'UI' |