diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-07 23:50:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-07 23:50:02 +0300 |
commit | 66d275f8d3d4e7821e940b4d0ccbd7aa9b1f5037 (patch) | |
tree | 64ae6d088f4b11e52f026d9f2f1742f9532aebf4 /source/blender/makesrna/intern/rna_wm_gizmo.c | |
parent | f23319d0958bdfc860f884dd261c652b158d587f (diff) |
RNA: update gizmo API for changes in Blender
- gpu module renamed.
- make gizmo.new() take type as a required argument.
Diffstat (limited to 'source/blender/makesrna/intern/rna_wm_gizmo.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_wm_gizmo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_wm_gizmo.c b/source/blender/makesrna/intern/rna_wm_gizmo.c index 4834b7ae5fc..c31e5825da0 100644 --- a/source/blender/makesrna/intern/rna_wm_gizmo.c +++ b/source/blender/makesrna/intern/rna_wm_gizmo.c @@ -885,7 +885,8 @@ static void rna_def_gizmos(BlenderRNA *brna, PropertyRNA *cprop) func = RNA_def_function(srna, "new", "rna_GizmoGroup_gizmo_new"); RNA_def_function_ui_description(func, "Add gizmo"); RNA_def_function_flag(func, FUNC_USE_REPORTS); - RNA_def_string(func, "type", "Type", 0, "", "Gizmo identifier"); /* optional */ + parm = RNA_def_string(func, "type", "Type", 0, "", "Gizmo identifier"); /* optional */ + RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); parm = RNA_def_pointer(func, "gizmo", "Gizmo", "", "New gizmo"); RNA_def_function_return(func, parm); |