Blender Git Commit Log

Git Commits -> Revision 4863feb

Revision 4863feb by Sergey Sharybin (master)
June 10, 2013, 13:07 (GMT)
Changes to mask evaluation

- BKE_mask_update_scene was only used with do_newframe=FALSE,
removed this argument.

- Made it so BKE_mask_update_scene is able to handle LIB_ID_RECALC_DATA
case. Namely, if mask ID is tagged for data update it means shapekeys
will be re-evaluated (as if do_newframe=true).

If mask id only tagged for LIB_ID_RECALC, then no shapekey evaluation
happens (same as it used to behave before).

This means, doing DAG_id_tag_update(&mask->id, OB_RECALC_DATA) will
lead to shapekeys re-evaluation which is really needed in such
operators as clearing shapekeys (and cleaning shapekeys which is
in tomato branch yet).

This is a bit silly to use OB_RECALC_DATA sine mask is not an OB,
but could not see better way to do it now.

This fixes missing mask re-evaluation after clearing shapekey,
would expect no other functional changes.

Commit Details:

Full Hash: 4863feb95640bffa0a2c250f1b9da13100643fd2
SVN Revision: 57351
Parent Commit: 183629b
Lines Changed: +7, -6

4 Modified Paths:

/source/blender/blenkernel/BKE_mask.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/mask.c (+4, -3) (Diff)
/source/blender/blenkernel/intern/scene.c (+1, -1) (Diff)
/source/blender/editors/mask/mask_shapekey.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021