Page MenuHome

Multi-object edit - UV_OT_project_from_view - orthographic with bounds
AbandonedPublic

Authored by Alan Troth (Al) on May 14 2018, 6:19 PM.

Details

Summary

Multi-object edit - UV_OT_project_from_view.

Orthographic option now works in multi object edit mode. Bounds option should also work (if D3368 has also been applied).

Before this diff, a vertex at the objects position/origin would result in a uv of 0,0 - other uvs are relative to that. After this diff, a single object gives the same result as before the diff. For multiple objects, a vertex at the average position of the objects would end up at 0,0 - other uvs are relative to that. Not a great explanation but I think this diff gives what is wanted.

Diff Detail

Repository
rB Blender
Branch
orthographic (branched from blender2.8)
Build Status
Buildable 1797
Build 1797: arc lint + arc unit

Event Timeline

Alan Troth (Al) edited the summary of this revision. (Show Details)May 14 2018, 6:22 PM
Alan Troth (Al) updated this revision to Diff 11351.EditedJul 4 2018, 9:22 PM
  • Better function name.
  • Offset is now added, not subtracted
  • RNA_boolean_get(op->ptr, "orthographic") is now only called once, not twice.

Thanks for the patch. Committed on rB5ff15a1777eb6268b04cdaf12f6156bfe51d437d with minor changes:

  • Initialize flot arrays with {0} instead of memset(foo, 0, sizeof(foo)).
  • Use add_v4_v4 instead of for loop.
  • Rename uv_map_rotation_matrix_w_offset > uv_map_rotation_matrix_ex.