[Bf-taskforce25] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [18236] branches/blender2.5/blender/source /blender/makesrna/intern/rna_modifier.c: Added RNA for Armature modifier

Joshua Leung aligorith at gmail.com
Fri Jan 2 02:29:18 CET 2009


Looks like you've got a few typos here...

Also, you might want to check up on the RNA Armature wrapping to make sure
the settings look the same on both sides.

On Fri, Jan 2, 2009 at 2:28 PM, Nicholas Bishop <nicholasbishop at gmail.com>wrote:

> Revision: 18236
>
> http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=18236
> Author:   nicholasbishop
> Date:     2009-01-02 02:28:02 +0100 (Fri, 02 Jan 2009)
>
> Log Message:
> -----------
> Added RNA for Armature modifier
>
> Modified Paths:
> --------------
>
>  branches/blender2.5/blender/source/blender/makesrna/intern/rna_modifier.c
>
> Modified:
> branches/blender2.5/blender/source/blender/makesrna/intern/rna_modifier.c
> ===================================================================
> ---
> branches/blender2.5/blender/source/blender/makesrna/intern/rna_modifier.c
> 2009-01-02 00:56:48 UTC (rev 18235)
> +++
> branches/blender2.5/blender/source/blender/makesrna/intern/rna_modifier.c
> 2009-01-02 01:28:02 UTC (rev 18236)
> @@ -29,6 +29,7 @@
>
>  #include "rna_internal.h"
>
> +#include "DNA_armature_types.h"
>  #include "DNA_modifier_types.h"
>  #include "DNA_scene_types.h"
>
> @@ -403,10 +404,40 @@
>  static void rna_def_modifier_armature(BlenderRNA *brna)
>  {
>        StructRNA *srna;
> +       PropertyRNA *prop;
>
>        srna= RNA_def_struct(brna, "ArmatureModifier", "Modifier");
>        RNA_def_struct_ui_text(srna, "Armature Modifier", "Armature
> Modifier.");
>        RNA_def_struct_sdna(srna, "ArmatureModifierData");
> +
> +       prop= RNA_def_property(srna, "armature", PROP_POINTER, PROP_NONE);
> +       RNA_def_property_pointer_sdna(prop, NULL, "object");
> +       RNA_def_property_struct_type(prop, "ID");
> +       RNA_def_property_ui_text(prop, "Armature", "Armature object to
> deform with.");
> +
> +       prop= RNA_def_property(srna, "vertex_group", PROP_STRING,
> PROP_NONE);
> +       RNA_def_property_string_sdna(prop, NULL, "defgrp_name");
> +       RNA_def_property_ui_text(prop, "Vertex Group", "Vertex group
> name.");
> +
> +       prop= RNA_def_property(srna, "invert", PROP_BOOLEAN, PROP_NONE);
> +       RNA_def_property_boolean_sdna(prop, NULL, "deformflag",
> ARM_DEF_INVERT_VGROUP);
> +       RNA_def_property_ui_text(prop, "Invert", "Invert vertex group
> influence.");
> +
> +       prop= RNA_def_property(srna, "use_vertex_groups", PROP_BOOLEAN,
> PROP_NONE);
> +       RNA_def_property_boolean_sdna(prop, NULL, "deformflag",
> ARM_DEF_VGROUP);
> +       RNA_def_property_ui_text(prop, "Use Vertex Groups", "");
> +
> +       prop= RNA_def_property(srna, "use_bone_envelopes", PROP_BOOLEAN,
> PROP_NONE);
> +       RNA_def_property_boolean_sdna(prop, NULL, "deformflag",
> ARM_DEF_ENVELOPE);
> +       RNA_def_property_ui_text(prop, "Use Bone Envelopes", "");
> +
> +       prop= RNA_def_property(srna, "quaternion", PROP_BOOLEAN,
> PROP_NONE);
> +       RNA_def_property_boolean_sdna(prop, NULL, "deformflag",
> ARM_DEF_QUATERNION);
> +       RNA_def_property_ui_text(prop, "Quaternion", "Deform rotation
> interpolation with quaternions.");
> +
> +       prop= RNA_def_property(srna, "b_bone_rest", PROP_BOOLEAN,
> PROP_NONE);
> +       RNA_def_property_boolean_sdna(prop, NULL, "deformflag",
> ARM_DEF_B_BONE_REST);
> +       RNA_def_property_ui_text(prop, "Quaternion",  "Make B-Bones deform
> already in rest position");
>  }
>
>  static void rna_def_modifier_hook(BlenderRNA *brna)
>
>
> _______________________________________________
> Bf-blender-cvs mailing list
> Bf-blender-cvs at blender.org
> http://lists.blender.org/mailman/listinfo/bf-blender-cvs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.blender.org/pipermail/bf-taskforce25/attachments/20090102/9dfa34d9/attachment.htm 


More information about the Bf-taskforce25 mailing list