diff options
author | Joshua Leung <aligorith@gmail.com> | 2012-06-03 11:49:54 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2012-06-03 11:49:54 +0400 |
commit | 7985fd0d1f532e0a564339e901d56bc5710437fe (patch) | |
tree | f7a0c55f2fc1cecfd3e8ceddd12e2a8a2b6541c7 /source/blender/makesdna/DNA_armature_types.h | |
parent | 1d4213b2bcb014cb5256d5ae8c8e10b370cc166e (diff) |
Part-Bugfix, Part-Feature Completion: 'Armature' Option for Mask Modifier
finally works
This commit finally hooks up the Mask Modifier's "Armature" option with the
relevant depsgraph updates on bone selection. Hence, this feature finally works
as it was originally intended - that is, bone selections can be used to control
which parts of the mesh that the mask modifier is applied to are displayed,
giving riggers more freedom to experiment with rigs that don't necessarily
feature overbearing/cluttering widgets.
Regarding the implementation ("has_viz_deps" flag):
This feature is just the "tip of the iceberg" of a number of related set of
rigging/visual animation tools I've had in mind for a while now (dating back to
the introduction of this modifier). Key considerations
- Not all rigs will use this, so we don't want an extra (depsgraph-flush +
search) recalc cost for those that don't use this.
- There are some planned features which will also use this
Diffstat (limited to 'source/blender/makesdna/DNA_armature_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_armature_types.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_armature_types.h b/source/blender/makesdna/DNA_armature_types.h index ea564e8c499..7faeccd2a32 100644 --- a/source/blender/makesdna/DNA_armature_types.h +++ b/source/blender/makesdna/DNA_armature_types.h @@ -128,7 +128,8 @@ typedef enum eArmature_Flag { ARM_NO_CUSTOM = (1<<10), /* made option negative, for backwards compat */ ARM_COL_CUSTOM = (1<<11), /* draw custom colors */ ARM_GHOST_ONLYSEL = (1<<12), /* when ghosting, only show selected bones (this should belong to ghostflag instead) */ // XXX depreceated - ARM_DS_EXPAND = (1<<13) + ARM_DS_EXPAND = (1<<13), /* dopesheet channel is expanded */ + ARM_HAS_VIZ_DEPS = (1<<14), /* other objects are used for visualising various states (hack for efficient updates) */ } eArmature_Flag; /* armature->drawtype */ |