diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-02-05 10:38:31 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-02-05 10:39:57 +0300 |
commit | 999f3985c07704f0edbe4e505172859b2e676634 (patch) | |
tree | c408d05e8ba91d36be3995c27308ff124504323d /source/blender/makesrna | |
parent | 49618b0e18f7554dd70ac898d93abc7baf380081 (diff) |
Fix T61107: wmGizmo.test_select can't return -1
This is used to skip selection.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_wm_gizmo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_wm_gizmo.c b/source/blender/makesrna/intern/rna_wm_gizmo.c index 22a08609d09..638967774bd 100644 --- a/source/blender/makesrna/intern/rna_wm_gizmo.c +++ b/source/blender/makesrna/intern/rna_wm_gizmo.c @@ -1015,7 +1015,7 @@ static void rna_def_gizmo(BlenderRNA *brna, PropertyRNA *cprop) RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED); parm = RNA_def_int_array(func, "location", 2, NULL, INT_MIN, INT_MAX, "Location", "Region coordinates", INT_MIN, INT_MAX); RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED); - parm = RNA_def_int(func, "intersect_id", 0, 0, INT_MAX, "", "", 0, INT_MAX); + parm = RNA_def_int(func, "intersect_id", -1, -1, INT_MAX, "", "Use -1 to skip this gizmo", -1, INT_MAX); RNA_def_function_return(func, parm); /* wmGizmo.handler */ |