Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuho Vepsalainen <bebraw@gmail.com>2008-12-01 22:02:27 +0300
committerJuho Vepsalainen <bebraw@gmail.com>2008-12-01 22:02:27 +0300
commit1ebf257bf4df7866dfd75c5e35e8cf14efa73bc8 (patch)
tree3e72e859d766b1bb1cad0b2d5d1bd2aec5bd0816 /source/blender/makesrna/intern/rna_meta.c
parent6a73a27d8100f2f6292125cd8ea78573402a43cd (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-xsource/blender/makesrna/intern/rna_meta.c12
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