Commit: 535d917870b508054790c7041c5e0fa8214f16ef
Author: Campbell Barton
Date:   Thu Aug 10 09:58:43 2017 +1000
Branches: blender2.8
https://developer.blender.org/rB535d917870b508054790c7041c5e0fa8214f16ef

Manipulator: expose use_draw_offset_scale to 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 9334d7da159..5e19298764e 100644
--- a/source/blender/makesrna/intern/rna_wm_manipulator.c
+++ b/source/blender/makesrna/intern/rna_wm_manipulator.c
@@ -369,6 +369,7 @@ RNA_MANIPULATOR_GENERIC_FLOAT_RW_DEF(line_width, 
line_width);
 RNA_MANIPULATOR_GENERIC_FLAG_RW_DEF(flag_use_draw_hover, flag, 
WM_MANIPULATOR_DRAW_HOVER);
 RNA_MANIPULATOR_GENERIC_FLAG_RW_DEF(flag_use_draw_modal, flag, 
WM_MANIPULATOR_DRAW_MODAL);
 RNA_MANIPULATOR_GENERIC_FLAG_RW_DEF(flag_use_draw_value, flag, 
WM_MANIPULATOR_DRAW_VALUE);
+RNA_MANIPULATOR_GENERIC_FLAG_RW_DEF(flag_use_draw_offset_scale, flag, 
WM_MANIPULATOR_DRAW_OFFSET_SCALE);
 RNA_MANIPULATOR_GENERIC_FLAG_RW_DEF(flag_hide, flag, WM_MANIPULATOR_HIDDEN);
 
 /* wmManipulator.state */
@@ -1055,6 +1056,12 @@ static void rna_def_manipulator(BlenderRNA *brna, 
PropertyRNA *cprop)
                prop, "rna_Manipulator_flag_use_draw_value_get", 
"rna_Manipulator_flag_use_draw_value_set");
        RNA_def_property_ui_text(prop, "Draw Value", "Show an indicator for the 
current value while dragging");
        RNA_def_property_update(prop, NC_SCREEN | NA_EDITED, NULL);
+       /* WM_MANIPULATOR_DRAW_OFFSET_SCALE */
+       prop = RNA_def_property(srna, "use_draw_offset_scale", PROP_BOOLEAN, 
PROP_NONE);
+       RNA_def_property_boolean_funcs(
+               prop, "rna_Manipulator_flag_use_draw_offset_scale_get", 
"rna_Manipulator_flag_use_draw_offset_scale_set");
+       RNA_def_property_ui_text(prop, "Draw Value", "Scale the offset matrix 
(use to apply screen-space offset)");
+       RNA_def_property_update(prop, NC_SCREEN | NA_EDITED, NULL);
 
        /* wmManipulator.state (readonly) */
        /* WM_MANIPULATOR_STATE_HIGHLIGHT */

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to