Blender Git Commit Log

Git Commits -> Revision 1a93d88

Revision 1a93d88 by Bastien Montagne (master)
January 22, 2012, 17:54 (GMT)
Add weight preview to WeightVG modifiers, and first, simple/basic refactor of how modifiers can generate preview.

User side:
* Preview for DynamicPaint should keep the same behavior (for now). Weight preview should be somawhat quicker, though.
* Preview for WeightVG modifiers is only active in WeightPaint mode, and if the affected vgroup is the active one.
* Last active preview modifier in stack wins!

Note: that modifier preview topic is yet to be further refined, quite raw/incomplete for now.

Dev side:
* In draw code, renamed DRAW_DYNAMIC_PAINT_PREVIEW flag to DRAW_MODIFIERS_PREVIEW
* Removed use of MOD_DPAINT_PREVIEW_READY in DynamicPaint code (seems unecessary, and if it was, should be of more general scope).
* Added eModifierTypeFlag_UsesPreview to ModifierTypeFlag, for modifiers that can generate some preview data.
* Added three new modifier funcs, to handle preview modifiers in draw code / mod stack.
* For weights preview: added the generic DM_update_weight_mcol func, which can update WEIGHT_MCOL layer with either a given array of weights (currently used by DynamicPaint only), or from current active vgroup(s).

So now, draw code is fully generic (i.e. no more modifier-type checking in it). Mod stack code is generic to some extent, but will need more work.

Commit Details:

Full Hash: 1a93d8834319b890ff0cbc70231b14635603ae95
SVN Revision: 43610
Parent Commit: df51fd7
Lines Changed: +245, -100

13 Modified Paths:

/source/blender/blenkernel/BKE_DerivedMesh.h (+9, -0) (Diff)
/source/blender/blenkernel/BKE_modifier.h (+9, -1) (Diff)
/source/blender/blenkernel/intern/DerivedMesh.c (+121, -43) (Diff)
/source/blender/blenkernel/intern/dynamicpaint.c (+1, -25) (Diff)
/source/blender/blenkernel/intern/modifier.c (+42, -0) (Diff)
/source/blender/editors/space_view3d/drawmesh.c (+2, -2) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+6, -18) (Diff)
/source/blender/editors/space_view3d/view3d_intern.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_dynamicpaint_types.h (+3, -0) (Diff)
/source/blender/modifiers/intern/MOD_dynamicpaint.c (+4, -2) (Diff)
/source/blender/modifiers/intern/MOD_weightvgedit.c (+17, -4) (Diff)
/source/blender/modifiers/intern/MOD_weightvgmix.c (+15, -2) (Diff)
/source/blender/modifiers/intern/MOD_weightvgproximity.c (+15, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021