diff options
author | Juho Vepsalainen <bebraw@gmail.com> | 2008-12-01 22:02:27 +0300 |
---|---|---|
committer | Juho Vepsalainen <bebraw@gmail.com> | 2008-12-01 22:02:27 +0300 |
commit | 1ebf257bf4df7866dfd75c5e35e8cf14efa73bc8 (patch) | |
tree | 3e72e859d766b1bb1cad0b2d5d1bd2aec5bd0816 /source/blender/makesrna/intern/rna_meta.c | |
parent | 6a73a27d8100f2f6292125cd8ea78573402a43cd (diff) |
RNA: Curves and VFont
Implemented RNA wrappers for curves and VFont. Only issue I could
not yet solve is related to struct CharInfo curinfo; . This particular
line proved to be hard to wrap and I therefore marked it as a TODO
should someone want to fix this issue.
I also cleaned up makesrna.c a bit by unifying brush/meta parts
under one call just the way it is done in the case of other
wrappers.
Diffstat (limited to 'source/blender/makesrna/intern/rna_meta.c')
-rwxr-xr-x | source/blender/makesrna/intern/rna_meta.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_meta.c b/source/blender/makesrna/intern/rna_meta.c index d37df339713..8fe1192f58a 100755 --- a/source/blender/makesrna/intern/rna_meta.c +++ b/source/blender/makesrna/intern/rna_meta.c @@ -35,7 +35,7 @@ #else -void RNA_def_metaelem(BlenderRNA *brna) +void rna_def_metaelem(BlenderRNA *brna) { StructRNA *srna; PropertyRNA *prop; @@ -75,7 +75,7 @@ void RNA_def_metaelem(BlenderRNA *brna) RNA_def_property_range(prop, 0.0f, 10.0f); RNA_def_property_ui_text(prop, "Stiffness", "Stiffness defines how much of the metaelement to fill."); - /* flag */ + /* flags */ prop= RNA_def_property(srna, "metaelem_negative", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flag", MB_NEGATIVE); RNA_def_property_ui_text(prop, "Negative Metaelement", "Set metaball as negative one."); @@ -89,7 +89,7 @@ void RNA_def_metaelem(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Scale Metaelement Radius", "Scale metaball radius?"); } -void RNA_def_metaball(BlenderRNA *brna) +void rna_def_metaball(BlenderRNA *brna) { StructRNA *srna; PropertyRNA *prop; @@ -124,4 +124,10 @@ void RNA_def_metaball(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Threshold", "Influence of metaelements."); } +void RNA_def_meta(BlenderRNA *brna) +{ + rna_def_metaelem(brna); + rna_def_metaball(brna); +} + #endif |