diff options
author | Ton Roosendaal <ton@blender.org> | 2012-12-21 16:07:28 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2012-12-21 16:07:28 +0400 |
commit | 915f78af928d4ec0ec8cae5bca2710acee5cf3ea (patch) | |
tree | 53c5765b09eee641304cfb405903d1fbb4ae1d6b /source/blender/makesrna/intern/rna_armature.c | |
parent | b5054896c3e54c311ccd47f9f7ba254240cc87af (diff) |
Armature bone feature:
New Bone option: "Relative Parenting".
This makes Child-Objects of Bones transform similar to how deformations
of bones are calculated. Allows to move bones in editmode to set pivot.
The option is in Bone Panel, with clear label.
It is ON now by default when you add new bones
Requested by Kjartan, our famous robot designer :) For "hard body rigs" it's
very useful.
Diffstat (limited to 'source/blender/makesrna/intern/rna_armature.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_armature.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_armature.c b/source/blender/makesrna/intern/rna_armature.c index 4c566d71981..f800e7b9e48 100644 --- a/source/blender/makesrna/intern/rna_armature.c +++ b/source/blender/makesrna/intern/rna_armature.c @@ -529,6 +529,11 @@ static void rna_def_bone_common(StructRNA *srna, int editbone) RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", BONE_NO_LOCAL_LOCATION); RNA_def_property_update(prop, 0, "rna_Armature_update_data"); + prop = RNA_def_property(srna, "use_relative_parenting", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_ui_text(prop, "Relative Parenting", "Object children will use relative transform, like deform"); + RNA_def_property_boolean_sdna(prop, NULL, "flag", BONE_RELATIVE_PARENTING); + RNA_def_property_update(prop, 0, "rna_Armature_update_data"); + prop = RNA_def_property(srna, "show_wire", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flag", BONE_DRAWWIRE); RNA_def_property_ui_text(prop, "Draw Wire", |