diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-09-12 01:27:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-09-12 01:27:14 +0400 |
commit | 202109a8f5a8a1f82de6d765476ded85fe15ea59 (patch) | |
tree | 577e69ec0b42c15c7738e550c089be3ce84f0133 /source/blender/makesrna/intern/rna_boid.c | |
parent | a144793af1456d39f5d0218529215e64dda3dfc7 (diff) |
code cleanup: set enums as static or add RNA_enum_types.h where they are used elsewhere.
also minor style cleanup.
Diffstat (limited to 'source/blender/makesrna/intern/rna_boid.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_boid.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_boid.c b/source/blender/makesrna/intern/rna_boid.c index 9b2ce863108..1dcc35c8fb3 100644 --- a/source/blender/makesrna/intern/rna_boid.c +++ b/source/blender/makesrna/intern/rna_boid.c @@ -41,6 +41,7 @@ #include "BLI_utildefines.h" #include "RNA_define.h" +#include "RNA_enum_types.h" #include "rna_internal.h" @@ -69,7 +70,8 @@ EnumPropertyItem boidrule_type_items[] = { {0, NULL, 0, NULL, NULL} }; -EnumPropertyItem boidruleset_type_items[] = { +#ifndef RNA_RUNTIME +static EnumPropertyItem boidruleset_type_items[] = { {eBoidRulesetType_Fuzzy, "FUZZY", 0, "Fuzzy", "Rules are gone through top to bottom (only the first rule which effect is above " "fuzziness threshold is evaluated)"}, @@ -77,6 +79,7 @@ EnumPropertyItem boidruleset_type_items[] = { {eBoidRulesetType_Average, "AVERAGE", 0, "Average", "All rules are averaged"}, {0, NULL, 0, NULL, NULL} }; +#endif #ifdef RNA_RUNTIME |