diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-06-13 15:52:33 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-06-13 15:52:33 +0400 |
commit | d7e06a6d91dc2773bb8c4d0b6a0d8e71c775e02c (patch) | |
tree | eacca8bed76ae59882cadda046f20b6e91071fe6 /source/blender/makesrna/intern/rna_armature.c | |
parent | cd3c52db0334950f85911cca9f7b834647950f7b (diff) |
2.5 - Armature/Bone Tweaks
- Changing visible layers for armatures now sends notifiers
- Made the bone buttons show the layers data
TODO:
I also tried making the bone buttons show for 'PoseChannels' instead of the raw bones since this is more correct for most editing that can be done (i.e. when posing). For editmode though, we'd need to wrap EditBones in some way? However, I couldn't seem to get this to work due to the way paths are resolved.
Diffstat (limited to 'source/blender/makesrna/intern/rna_armature.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_armature.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_armature.c b/source/blender/makesrna/intern/rna_armature.c index d49e5d14714..aa74e7429e2 100644 --- a/source/blender/makesrna/intern/rna_armature.c +++ b/source/blender/makesrna/intern/rna_armature.c @@ -32,6 +32,8 @@ #include "DNA_armature_types.h" #include "DNA_scene_types.h" +#include "WM_types.h" + #ifdef RNA_RUNTIME static void rna_Bone_layer_set(PointerRNA *ptr, const int *values) @@ -294,6 +296,7 @@ void rna_def_armature(BlenderRNA *brna) RNA_def_property_array(prop, 16); RNA_def_property_ui_text(prop, "Visible Layers", "Armature layer visibility."); RNA_def_property_boolean_funcs(prop, NULL, "rna_Armature_layer_set"); + RNA_def_property_update(prop, NC_OBJECT|ND_POSE, NULL); /* layer protection */ prop= RNA_def_property(srna, "layer_protection", PROP_BOOLEAN, PROP_NONE); |