Attempt to solve the T51258
Code style needs to be heavily analyzed.
It is not complete. There are still some TODOs commented in the code.
I can continue as soon as it is reviewed.
Differential D2990
Curve Edit Mode: support for curve handle-type theme colors Authored by Germano Cavalcante (mano-wii) on Jan 6 2018, 7:54 AM.
Details Attempt to solve the T51258 Code style needs to be heavily analyzed. It is not complete. There are still some TODOs commented in the code. I can continue as soon as it is reviewed.
Diff Detail
Event Timeline
Comment Actions
IMHO, the advantages of storing colors in GlobalsUboStorage is that it follows the convention of other engines and keeps the code more organized. One drawback is that the DRW_globals_update(void) function is called inside DRW_draw_render_loop_ex, so UBOs are rewritten all the time, which seems to be not very efficient. One suggestion would be to use DRW_globals_update(void) as a callback that is only called when some property within the Themes is changed. Comment Actions Minimizing updates to GlobalsUboStorage can be handled separately. Only the active spline should show with an active outline, otherwise this patch LGTM. Note: this method of drawing an outline around the handle ignores blenders line-width option.
Comment Actions
| ||||||||||||