[Bf-blender-cvs] [e3c85aaca74] blender2.8: Manipulator: expose use_select_background via RNA

Campbell Barton noreply at git.blender.org
Wed Jul 11 20:24:09 CEST 2018


Commit: e3c85aaca74fc7bd2a9da43a0396a886363bc93d
Author: Campbell Barton
Date:   Wed Jul 11 20:23:19 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBe3c85aaca74fc7bd2a9da43a0396a886363bc93d

Manipulator: expose use_select_background via RNA

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

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

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

diff --git a/source/blender/makesrna/intern/rna_wm_manipulator.c b/source/blender/makesrna/intern/rna_wm_manipulator.c
index 6d9a4bbe6c9..f1abaa73e70 100644
--- a/source/blender/makesrna/intern/rna_wm_manipulator.c
+++ b/source/blender/makesrna/intern/rna_wm_manipulator.c
@@ -405,6 +405,7 @@ RNA_MANIPULATOR_GENERIC_FLAG_RW_DEF(flag_use_draw_offset_scale, flag, WM_MANIPUL
 RNA_MANIPULATOR_GENERIC_FLAG_NEG_RW_DEF(flag_use_draw_scale, flag, WM_MANIPULATOR_DRAW_OFFSET_SCALE);
 RNA_MANIPULATOR_GENERIC_FLAG_RW_DEF(flag_hide, flag, WM_MANIPULATOR_HIDDEN);
 RNA_MANIPULATOR_GENERIC_FLAG_RW_DEF(flag_use_grab_cursor, flag, WM_MANIPULATOR_GRAB_CURSOR);
+RNA_MANIPULATOR_GENERIC_FLAG_RW_DEF(flag_use_select_background, flag, WM_MANIPULATOR_SELECT_BACKGROUND);
 
 /* wmManipulator.state */
 RNA_MANIPULATOR_FLAG_RO_DEF(state_is_highlight, state, WM_MANIPULATOR_STATE_HIGHLIGHT);
@@ -1135,6 +1136,12 @@ static void rna_def_manipulator(BlenderRNA *brna, PropertyRNA *cprop)
 	        prop, "rna_Manipulator_flag_use_draw_scale_get", "rna_Manipulator_flag_use_draw_scale_set");
 	RNA_def_property_ui_text(prop, "Scale", "Use scale when calculating the matrix");
 	RNA_def_property_update(prop, NC_SCREEN | NA_EDITED, NULL);
+	/* WM_MANIPULATOR_SELECT_BACKGROUND */
+	prop = RNA_def_property(srna, "use_select_background", PROP_BOOLEAN, PROP_NONE);
+	RNA_def_property_boolean_funcs(
+	        prop, "rna_Manipulator_flag_use_select_background_get", "rna_Manipulator_flag_use_select_background_set");
+	RNA_def_property_ui_text(prop, "Select Background", "Don't write into the depth buffer");
+	RNA_def_property_update(prop, NC_SCREEN | NA_EDITED, NULL);
 
 	/* wmManipulator.state (readonly) */
 	/* WM_MANIPULATOR_STATE_HIGHLIGHT */



More information about the Bf-blender-cvs mailing list