Page MenuHome

Add Object Tool (WIP)
Needs ReviewPublic

Authored by Campbell Barton (campbellbarton) on Jan 27 2020, 2:12 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Maniphest Tasks
T57210: Add Object Tools Todo
Summary

This is a work in progress patch for T57210: Add Object Tools Todo, this isn't ready for review yet.

What works:

  • Interactively adding primitives with two clicks.
  • Scene orientation used for new objects.
  • Position enum [ view-plane / axis-plane / surface ]
  • Origin enum [ base / center ]
  • Primitive object types [ cube / cylinder / cone / uv-sphere / ico-sphere ]
  • Settings for object types in the top-bar.
  • Constrain 1:1 aspect (Shift).
  • Toggle center (Alt).

TODO:

  • Add "Cone" icon.
  • Handle "Error" cases (when the cursor-plane intersection is behind the view for example).
  • Snapping.
  • Improve layout of the UI (currently spacing is poor).
  • Show a preview plane before adding the object.
  • Gizmos to adjust the dimensions after adding the object.

Diff Detail

Repository
rB Blender
Branch
TEMP-OBJECT-ADD (branched from master)
Build Status
Buildable 6391
Build 6391: arc lint + arc unit

Event Timeline

Campbell Barton (campbellbarton) retitled this revision from Add Object Tool (WIP patch) to Add Object Tool (WIP).Jan 27 2020, 2:17 AM
Campbell Barton (campbellbarton) edited the summary of this revision. (Show Details)

Update:

  • Add position [view-plane / axis-plane / surface].
  • Origin [base / center].
  • Use scene orientation setting for object rotation.
  • Add object types [cube / cylinder / cone / uv-sphere / ico-sphere ]
  • Expose settings object type settings in the top-bar.
Campbell Barton (campbellbarton) edited the summary of this revision. (Show Details)
  • Remove redundant headers
  • Add modal keymap, fix aspect option
  • Modifier keys to toggle center & fixed aspect ratio