Page MenuHome

This commit fixes T70142
ClosedPublic

Authored by Fabrício Luis (ce3po) on Jul 11 2020, 6:12 AM.

Diff Detail

Repository
rB Blender
Branch
arcpatch-D8271 (branched from master)
Build Status
Buildable 9219
Build 9219: arc lint + arc unit

Event Timeline

Fabrício Luis (ce3po) requested review of this revision.Jul 11 2020, 6:12 AM
Fabrício Luis (ce3po) created this revision.
Campbell Barton (campbellbarton) requested changes to this revision.Jul 11 2020, 12:56 PM
Campbell Barton (campbellbarton) added inline comments.
source/blender/editors/space_image/image_ops.c
854

Normally we don't call exec functions directly, this should be moved into a utility function.

858–860

Poll will catch this, if not, the exec function would have already crashed - from calling view all above.

This revision now requires changes to proceed.Jul 11 2020, 12:56 PM
  • Include utility function ED_Image_view_all
  • Remove warning ED_Image_view_all
Campbell Barton (campbellbarton) added inline comments.
source/blender/editors/space_image/image_ops.c
809

This could be moved to View Navigation Utilities, currently this isn't in a group.

This revision is now accepted and ready to land.Jul 15 2020, 1:30 PM
  • Moved image_view_all() to View Navigation Utilities

Labels should be properly capitalized, descriptions in lowercase.
https://wiki.blender.org/wiki/Human_Interface_Guidelines/Writing_Style

"Cursor to Center View"
"Set 2D cursor to center view location"