Details
- Reviewers
Campbell Barton (campbellbarton) - Maniphest Tasks
- T39054: Show Weight Data in wireframe Display Mode
Diff Detail
- Branch
- arcpatch-D585
Event Timeline
| source/blender/blenkernel/intern/editderivedmesh.c | ||
|---|---|---|
| 329 | I don't think this block of code is needed at all, setDrawInterpOptions can be used to set the color to use weights, This will also make drawing work with modifiers (subsurf in edimode for eg) The way this would work is the caller has to check if weights are used and pass a different setDrawInterpOptions function in that case. | |
@Campbell Barton (campbellbarton) I modified the patch according to your recommendations. Someone mentioned it would be good to not colorize edges when we are in solid mode. I think i solved this by now. I also added display of weighted wireframes when Matcap is enabled. I am not sure if this is useful, but it looks nice :) see
| source/blender/blenkernel/intern/DerivedMesh.c | ||
|---|---|---|
| 1077 | All these can be removed, just pass via the callback data | |
| source/blender/blenkernel/intern/editderivedmesh.c | ||
| 49 | this file can be unchanged | |
| source/blender/editors/space_view3d/drawobject.c | ||
| 155 | result of DM_get_weight_user() can go here too. | |
| 2459 | This is incorrect, It should interpolate between the 2 colors if its not 0.0 or 1.0. As selection does. You should be able to check this is working with subsurf+cage. | |
| source/blender/editors/space_view3d/drawobject.c | ||
|---|---|---|
| 2433 | The mesh either has deform weights or not. This check should be moved into draw_dm_edges_sel_interp or even earlier. | |
- Removed all changes fro editderivedmesh.c
- added unweighted verts color to the custom data structure
- interpolation of weight colors (take care of the t factor)
