Page MenuHome

VSE: Draw snapping overlay
AbandonedPublic

Authored by Richard Antalik (ISS) on Jun 28 2021, 7:39 PM.

Details

Summary

Patch is WIP

Diff Detail

Repository
rB Blender
Branch
snap-draw (branched from master)
Build Status
Buildable 15474
Build 15474: arc lint + arc unit

Event Timeline

Richard Antalik (ISS) requested review of this revision.Jun 28 2021, 7:39 PM
Richard Antalik (ISS) created this revision.

Oops, accidentally combined both patches

Richard Antalik (ISS) edited the summary of this revision. (Show Details)Jun 28 2021, 7:41 PM
Germano Cavalcante (mano-wii) requested changes to this revision.Jun 28 2021, 8:21 PM
Germano Cavalcante (mano-wii) added inline comments.
source/blender/editors/space_sequencer/sequencer_draw.c
2504

Making a generic drawing function is useful if you intend to use it in more than one place (like gizmos for example). Otherwise I don't see the problem is to leave the code in the transform operator.
(That's more personal taste)

source/blender/editors/transform/transform.c
1739

This is an area I don't remember ever touching before.
I realize that the code can be deduplicated with ELEM(t->spacetype, ...).
Some transform modes use these handles more than others (like Rotate for example).

source/blender/editors/transform/transform_mode_edge_seq_slide.c
266

A little weird to edit a tsnap member out of place.
Maybe it's better to make a dedicated drawing function for this mode, as we have the: drawEdgeSlide, drawVertSlide and drawDial3d

source/blender/editors/transform/transform_snap.c
723

Changes in the state of scene properties are best located in saveTransform as this function only runs on success and an undo step is appropriately added.

This revision now requires changes to proceed.Jun 28 2021, 8:21 PM

Closing ac most of these changes are in D11646