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

See fee440bec8.
This commit is contained in:
Julian Eisel 2020-04-29 00:05:17 +02:00
parent 9c2204fac1
commit 82f1a7bd4c
Notes: blender-bot 2023-02-14 00:19:09 +01:00
Referenced by issue blender/blender#71347, Virtual Reality - Milestone 1 - Scene Inspection
1 changed files with 5 additions and 0 deletions

View File

@ -136,11 +136,16 @@ def xr_landmark_camera_object_poll(self, object):
def xr_landmark_active_update(self, context):
wm = context.window_manager
xr_landmark_active_type_update(self, context)
xr_landmark_active_camera_update(self, context)
xr_landmark_active_base_pose_location_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):
name: bpy.props.StringProperty(