diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-01-07 12:22:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-01-07 12:22:49 +0300 |
commit | c4fda6f7d076ffed5a55634031e623838a3d6192 (patch) | |
tree | b739b697ed619b76f5d28d526cdbcfb823b36f81 /source/blender/makesrna/intern/rna_nodetree.c | |
parent | 0778856268a77a323970ad5f3e2374664f592b0b (diff) |
Cleanup: use generic xyz axis enums
Diffstat (limited to 'source/blender/makesrna/intern/rna_nodetree.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_nodetree.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index 984ecbe96ac..0bec03c5ce1 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -5224,15 +5224,9 @@ static void def_cmp_splitviewer(StructRNA *srna) { PropertyRNA *prop; - static EnumPropertyItem axis_items[] = { - {0, "X", 0, "X", ""}, - {1, "Y", 0, "Y", ""}, - {0, NULL, 0, NULL, NULL} - }; - prop = RNA_def_property(srna, "axis", PROP_ENUM, PROP_NONE); RNA_def_property_enum_sdna(prop, NULL, "custom2"); - RNA_def_property_enum_items(prop, axis_items); + RNA_def_property_enum_items(prop, rna_enum_axis_xy_items); RNA_def_property_ui_text(prop, "Axis", ""); RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); |