See T39054, initial implementation for review
Details
- Reviewers
Campbell Barton (campbellbarton) Joshua Leung (aligorith) - Maniphest Tasks
- T39054: Show Weight Data in wireframe Display Mode
Diff Detail
- Branch
- master
Event Timeline
| source/blender/blenkernel/intern/editderivedmesh.c | ||
|---|---|---|
| 326 | This should be accessed once and used for every vertex. Then cd_dvert_offset < 0 can be avoided. Also should check cd_dvert_offset == -1 since its only ever -1 | |
| 339 | BM_vert_at_index isn't needed here, currently its getting the index from the vert, then the vert from the index, just pass the vert. eed->v1 / eed->v2 | |
| 345 | Not sure why col0 is passed. | |
| source/blender/editors/space_view3d/drawobject.c | ||
| 2222 | is obedit arg needed? | |
| source/blender/blenkernel/BKE_DerivedMesh.h | ||
|---|---|---|
| 439 | I'm not sure that it's good idea (or even necessary) to be passing in an object pointer here. Some reasons:
Some better options are:
| |
Removed all unnecessary passing of variables.
Moved the check if weights shall be displayed further up into drawobject.c
and pass a boolean variable instead of flags.
Added support for display unweighted verts with appropriate Theme color.
Also take into account the Show Zero Weights setting from the tool shelf.
Moved weightuser information into DMWeightColorInfo to avoid excessive passing of parameters
The patch didnt work when in edge draw mode, attached update.
Also force depth view when wire color is used.
Note: There is really no need for emDM_drawMappedEdgesInterp to be modified here. draw_em_fancy_edges is already handling color and could optionally use a different function then draw_dm_edges_sel_interp that uses color weights.
Even if this is done, not sure its really good to include this with blender... Would be interesteded if this is something users really think helps them a lot.