Page MenuHome

Converted clip_dopesheet_draw.c to new immediate mode. (Part of T49043)
ClosedPublic

Authored by Tobias Mertz (TCMBoby) on Jan 27 2017, 10:32 PM.

Details

Summary

Text of selected channels does not change colors, since blenfont does not use uniform colors.

Otherwise it should be good to go.

Diff Detail

Repository
rB Blender
Branch
blender2.8
Build Status
Buildable 419
Build 419: arc lint + arc unit

Event Timeline

Tobias Mertz (TCMBoby) retitled this revision from to Converted clip_dopesheet_draw.c to new immediate mode. (Part of T49043).
Tobias Mertz (TCMBoby) updated this object.

Looks good! I can test it tomorrow.

Mike Erwin (merwin) requested changes to this revision.Jan 31 2017, 10:28 AM
Mike Erwin (merwin) edited edge metadata.

Looks good for the most part! One change needed for BLF compatibility.

source/blender/editors/space_clip/clip_dopesheet_draw.c
246–247

BTW I'm working on draw_keyframe_shape... I'll make sure this & that work well together.

343–347

Keep this (after immUnbindProgram), or update it to

UI_ThemeColor(sel ? TH_TEXT_HI : TH_TEXT);

BLF_draw still uses old-skool glColor. I'm working on that.

This revision now requires changes to proceed.Jan 31 2017, 10:28 AM
Tobias Mertz (TCMBoby) edited edge metadata.

Reverted color assignment for font drawing

Tobias Mertz (TCMBoby) marked an inline comment as done.Feb 1 2017, 7:57 PM

"arc patch D2486" fails for me. Somehow your earlier commit is not included, but I see its effects here...
Do you have commit rights? If so you can push these changes.
If not, either figure out how to fix in Phabricator/Arcanist or attach the final clip_dopesheet_draw.c here.


I see, there was an error on my part. I'm new to Phabricator/Arcanist.
Since I don't have commit rights, here is the final version of clip_dopesheet_draw.c.
Sorry for the inconvenience.

Mike Erwin (merwin) edited edge metadata.
This revision is now accepted and ready to land.Feb 2 2017, 4:39 AM

Minor inconvenience! committed to blender2.8