Page MenuHome

Cleanup: split 'transform_gizmo_3d.c' in specific compilation units
Needs ReviewPublic

Authored by Germano Cavalcante (mano-wii) on Oct 19 2021, 2:18 AM.

Details

Summary

transform_gizmo_3ds is already big and will get bigger when new
transform gizmos are implemented.

So while this might miss some build optimizations, it will have long-
term benefits.

Diff Detail

Repository
rB Blender
Branch
transform-cleanup (branched from master)
Build Status
Buildable 18020
Build 18020: arc lint + arc unit

Event Timeline

Germano Cavalcante (mano-wii) requested review of this revision.Oct 19 2021, 2:18 AM
Germano Cavalcante (mano-wii) created this revision.
source/blender/editors/transform/transform_gizmo.h
1 ↗(On Diff #43535)

Prefer name transform_gizmo_3d.h (we may have a 2D version later).

Same for transform_gizmo.c.

43–90 ↗(On Diff #43535)

Can't this be kept private?

  • Rename transform_gizmo to transform_gizmo_3d
  • Move drawDial3d to transform_gizmo_3d_loc_rot_scale.c to keep some variables private
Germano Cavalcante (mano-wii) marked 2 inline comments as done.Oct 19 2021, 10:04 PM