diff options
author | Alexander Gavrilov <angavrilov@gmail.com> | 2019-09-11 12:48:52 +0300 |
---|---|---|
committer | Alexander Gavrilov <angavrilov@gmail.com> | 2019-09-11 12:49:04 +0300 |
commit | d4f8bc80a4bd69707a92e7141a2fb67d3f668c58 (patch) | |
tree | 01b998e5e958c62f8525be0eccc671381021cbf3 /source/blender/depsgraph | |
parent | 69e0f485c9f7e75e6e95e66751a5fb29cbe6d4d2 (diff) |
Armature: convert the length Python property of bones to a RNA property.
This allows accessing it from drivers and using it in UI, as
demonstrated by adding it to the transform panel of 3D View.
As an aside, properly mark transform-related properties of Bone
read-only, as they can only be changed correctly in edit mode.
Diffstat (limited to 'source/blender/depsgraph')
-rw-r--r-- | source/blender/depsgraph/intern/builder/deg_builder_rna.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/depsgraph/intern/builder/deg_builder_rna.cc b/source/blender/depsgraph/intern/builder/deg_builder_rna.cc index d3ae3da9b56..e53ac40f196 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_rna.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_rna.cc @@ -211,7 +211,7 @@ RNANodeIdentifier RNANodeQuery::construct_node_identifier(const PointerRNA *ptr, } /* Final transform properties go to the Done node for the exit. */ else if (STREQ(prop_name, "head") || STREQ(prop_name, "tail") || - STRPREFIX(prop_name, "matrix")) { + STREQ(prop_name, "length") || STRPREFIX(prop_name, "matrix")) { if (source == RNAPointerSource::EXIT) { node_identifier.operation_code = OperationCode::BONE_DONE; } |