[Bf-blender-cvs] [97c33d36709] vr_scene_inspection: Refactor XR mirror toggling

Julian Eisel noreply at git.blender.org
Thu Mar 12 13:13:37 CET 2020


Commit: 97c33d3670993aee1be0f046912e710869f4b329
Author: Julian Eisel
Date:   Thu Mar 12 12:23:28 2020 +0100
Branches: vr_scene_inspection
https://developer.blender.org/rB97c33d3670993aee1be0f046912e710869f4b329

Refactor XR mirror toggling

===================================================================

M	source/blender/makesrna/intern/rna_space.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index c72f6d50b04..72dd0f422c0 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -1333,16 +1333,6 @@ static const EnumPropertyItem *rna_SpaceView3D_stereo3d_camera_itemf(bContext *C
   }
 }
 
-static void rna_SpaceView3D_mirror_xr_session_set(PointerRNA *ptr, bool value)
-{
-#  ifdef WITH_XR_OPENXR
-  View3D *v3d = ptr->data;
-  SET_FLAG_FROM_TEST(v3d->flag, value, V3D_XR_SESSION_MIRROR);
-#  else
-  UNUSED_VARS(ptr, value);
-#  endif
-}
-
 static void rna_SpaceView3D_mirror_xr_session_update(Main *main,
                                                      Scene *UNUSED(scene),
                                                      PointerRNA *ptr)
@@ -4232,7 +4222,6 @@ static void rna_def_space_view3d(BlenderRNA *brna)
 
   prop = RNA_def_property(srna, "mirror_xr_session", PROP_BOOLEAN, PROP_NONE);
   RNA_def_property_boolean_sdna(prop, NULL, "flag", V3D_XR_SESSION_MIRROR);
-  RNA_def_property_boolean_funcs(prop, NULL, "rna_SpaceView3D_mirror_xr_session_set");
   RNA_def_property_ui_text(
       prop,
       "Mirror VR Session",



More information about the Bf-blender-cvs mailing list