Page MenuHome

Fix T67573: Missing offset in markers names on current frame
ClosedPublic

Authored by Alessio Monti di Sopra (a.monti) on Jul 24 2019, 1:42 PM.

Details

Summary

The patch makes it so that markers names get an offset in the y axis not only when selected, but also when near the current frame.

The markers get affected for 5 frames in total, as in 2.7, starting from the current to the next four ones.

ps. @Jacques Lucke (JacquesLucke) I might be missing something but, why there are two for loops? They do the same thing and one or the other will execute for sure.

Diff Detail

Repository
rB Blender

Event Timeline

Jacques Lucke (JacquesLucke) requested changes to this revision.Jul 24 2019, 3:00 PM

The two loops exist so that the selected markers are drawn after the unselected markers.
This is a good case for a comment, feel free to add one.

source/blender/editors/animation/anim_markers.c
487

Use /* A full sentence. */ for comments.

488

Not sure if there is such a thing, but maybe there is a function like in_range. That could be used to simplify the condition.

This revision now requires changes to proceed.Jul 24 2019, 3:00 PM
  • Follow style guide for comments
  • Simplify the condition using IN_RANGE_INCL()

Will commit this after the 2.80 release, when the master branch is open again. Please remind me if I forget about it...

This revision is now accepted and ready to land.Jul 24 2019, 5:41 PM