Cleanup: duplicate field warning, trailing space
This commit is contained in:
@@ -254,12 +254,4 @@ const UserDef U_default = {
|
||||
{
|
||||
.is_dirty = 0,
|
||||
},
|
||||
|
||||
.xr_navigation =
|
||||
{
|
||||
.vignette_intensity = 60.0f,
|
||||
.turn_amount = DEG2RAD(30),
|
||||
.turn_speed = DEG2RAD(60),
|
||||
.flag = USER_XR_NAV_SNAP_TURN,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1231,7 +1231,7 @@ def vr_defaults_create_default(session_state):
|
||||
'ANY',
|
||||
'ANY')
|
||||
"""
|
||||
|
||||
|
||||
ami = vr_defaults_haptic_action_add(am,
|
||||
VRDefaultActions.HAPTIC.value,
|
||||
["/user/hand/left",
|
||||
|
||||
@@ -97,10 +97,11 @@ class VIEW3D_PT_vr_session_view(Panel):
|
||||
col = layout.column(align=True)
|
||||
col.prop(session_settings, "clip_start", text="Clip Start")
|
||||
col.prop(session_settings, "clip_end", text="End", text_ctxt=i18n_contexts.id_camera)
|
||||
|
||||
|
||||
col = layout.column(align=True)
|
||||
col.prop(session_settings, "fly_speed", text="Fly Speed")
|
||||
|
||||
|
||||
class VIEW3D_PT_vr_session_view_object_type_visibility(VIEW3D_PT_object_type_visibility):
|
||||
def draw(self, context):
|
||||
session_settings = context.window_manager.xr_session_settings
|
||||
|
||||
@@ -43,7 +43,7 @@ class USERPREF_PT_vr_navigation(Panel):
|
||||
col = layout.column()
|
||||
|
||||
col.row().prop(nav, "vignette_intensity", text="Vignette Intensity")
|
||||
|
||||
|
||||
if nav.snap_turn:
|
||||
col.row().prop(nav, "turn_amount", text="Turn Amount")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user