Skip to content
Snippets Groups Projects
Commit 82f1a7bd authored by Julian Eisel's avatar Julian Eisel
Browse files

VR Scene Inspection: Force reset of pose offsets when changing landmark

See fee440bec8.
parent 9c2204fa
Branches
Tags
No related merge requests found
...@@ -136,11 +136,16 @@ def xr_landmark_camera_object_poll(self, object): ...@@ -136,11 +136,16 @@ def xr_landmark_camera_object_poll(self, object):
def xr_landmark_active_update(self, context): def xr_landmark_active_update(self, context):
wm = context.window_manager
xr_landmark_active_type_update(self, context) xr_landmark_active_type_update(self, context)
xr_landmark_active_camera_update(self, context) xr_landmark_active_camera_update(self, context)
xr_landmark_active_base_pose_location_update(self, context) xr_landmark_active_base_pose_location_update(self, context)
xr_landmark_active_base_pose_angle_update(self, context) xr_landmark_active_base_pose_angle_update(self, context)
if wm.xr_session_state:
wm.xr_session_state.reset_to_base_pose(context)
class VRLandmark(bpy.types.PropertyGroup): class VRLandmark(bpy.types.PropertyGroup):
name: bpy.props.StringProperty( name: bpy.props.StringProperty(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment