b2ee8e1cba
Fix typo in editmesh edge delete
2018-05-24 17:49:44 +02:00
f99197fb2d
Transform: Support mixed snap in 3d View.
...
Allows more than one snap mode to be enabled. So different combinations are possible.
Reviewers: campbellbarton
Reviewed By: campbellbarton
Subscribers: Christopher_Anderssarian, duarteframos
Tags: #bf_blender_2.8
Differential Revision: D3400
2018-05-22 08:58:56 -03:00
67cf4cb5ec
Cleanup: replace MEM_SAFE_FREE -> MEM_freeN
...
No need to check for NULL in this case.
2018-05-22 07:28:14 +02:00
12eb29fe35
Cleanup: whitespace, duplicate includes
2018-05-20 08:52:56 +02:00
1fd11dd3ba
Cleanup: comments, use negate_mat3_m4
2018-05-18 19:56:34 +02:00
987d1df571
Tool System: store the active tool in ScrArea
...
Without this we need to have the context to get the
(space_type, mode) args for an active tool lookup.
For event handling & poll its more convenient to have direct access.
2018-05-18 09:40:52 +02:00
b0c8d35142
Tool System: use context mode
...
Was using object mode in the workspace API which isn't
useful for accessing tools.
2018-05-17 20:28:14 +02:00
edf6676a77
Tool System: per space/mode tool support
...
This patch adds support for:
- Per space-type tools (3D view and edit).
- Per mode tools (object, edit, weight-paint .. etc).
The top-bar shows the last activated tools options, this is a design
issue with using a global topbar to show per-space settings.
See D3395
2018-05-17 15:57:33 +02:00
def1c3eb4b
Particle System: ported most DerivedMesh → Mesh
...
There are a few places where DerivedMesh is still used, most notably
when calling the (not yet ported) cloth simulation. There is also still
the use of Object.derivedDeform and Object.derivedFinal. Those places are
marked with a TODO.
Some functions in the editors module were copied to accept Mesh. Those
already had 'mesh' in the name; the copies are suffixed with '__real_mesh'
for easy renaming later when the DM-based functionality is removed.
2018-05-16 16:31:38 +02:00
d9e04cb594
Multi-Object-Mode: EditMesh Tool Bevel (MESH_OT_bevel)
...
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3352
2018-05-16 14:05:57 +02:00
1bb9ccf887
Multi-Object-Editing: MESH_OT_faces_select_linked_flat
...
Reviewers: dfelinto
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3372
2018-05-16 13:04:09 +02:00
46aec45b2a
Multi-Object-Editing: intersect boolean (MESH_OT_intersect_boolean)
...
Reviewers: dfelinto (changed test from totvert to totfacesel before committing)
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3306
2018-05-16 12:29:05 +02:00
Dalai Felinto
807afedf6c
Fix check for MESH_OT_intersect
2018-05-16 12:26:32 +02:00
dffd37877d
Multi-Object-Editing: intersect (MESH_OT_intersect)
...
Reviewers: dfelinto
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3307
2018-05-16 12:17:20 +02:00
b6a822d726
Multi-Object-Editing: Weld Edges into Faces(MESH_OT_face_split_by_edges)
...
Reviewers: dfelinto
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3308
2018-05-16 11:54:33 +02:00
50c29e2391
Cleanup: pass the use_depth parameter to the SnapObjectParams struct in the ED_transform_snap_object_project_view3d_mixed.
2018-05-15 14:32:30 -03:00
f1bc899146
Merge branch 'master' into blender2.8
2018-05-15 10:25:49 +02:00
9636cab009
Undo System: remove nested edit-mode undo calls
...
Regression in recent undo system changes,
This caused T55048.
When each mode had its own undo stack it was important
to initialize it when entering edit-mode.
2018-05-15 10:10:48 +02:00
c3b061278e
EditMesh: updated extrude manipulator
...
Now plus icons are used to add,
arrows are used to adjust existing extrusions.
2018-05-14 23:21:59 +02:00
627a783784
Fix error in MESH_OT_edge_face_add changes
...
Context sensitive create also needs to check selected vertices.
Also correct indentation.
2018-05-14 16:35:51 +02:00
Dalai Felinto
fc7316fb54
Multi-Objects: MESH_OT_vert_connect_path by Falk David
...
With a few changes:
* Use space after if.
* Skip for loop when no selected vertices.
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3349
2018-05-14 15:56:26 +02:00
Dalai Felinto
de2d642c84
Multi-Objects: MESH_OT_edge_face_add by Guy Boicey
...
With changes by Dalai Felinto:
* Indentation
* Skip for loop when no vert/edge are selected
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3233
2018-05-14 15:47:51 +02:00
Dalai Felinto
b1d016bc12
MESH_OT_select_mirror: Only report when something to report
...
Inspired by D3299.
2018-05-14 15:26:29 +02:00
Dalai Felinto
90c9458b2f
Multi- Objects: MESH_OT_select_face_by_sides by Rainer Trummer
...
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3301
2018-05-14 15:23:22 +02:00
Dalai Felinto
4043e4b820
Multi-Object: MESH_OT_vert_connect_concave by Guy Boicey
...
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3255
2018-05-14 14:56:40 +02:00
63c2397171
T54643-Multi-Object EditMesh: MESH_OT_select_nth
...
With changes by Dalai Felinto:
* Move WM_operator.* outside for loop.
* Update error message to handle Mesh and Meshes.
* Skip main functionality when no vert/edge/face is selected.
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3371
2018-05-14 14:07:10 +02:00
Dalai Felinto
3ebe389605
Multi-Object: MESH_OT_select_mirror
2018-05-14 13:47:53 +02:00
bf73628978
Fix extrude adjustment on normal axis
2018-05-14 13:45:34 +02:00
Dalai Felinto
b942106c73
Multi-Object: MESH_OT_vert_connect_nonplanar by Aeden McClain
...
With indentation fixes by Dalai Felinto.
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3312
2018-05-14 13:04:01 +02:00
0cfe9f95df
Fix extrude manipulator update w/ view orientation
2018-05-14 12:26:40 +02:00
Dalai Felinto
e1cee0ac71
Multi-Object: MESH_OT_convex_hull by Lucas Boutrot
...
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3223
2018-05-14 12:20:15 +02:00
dc4f94783d
EditMesh: show XYZ axis for extrude
...
Always show normal axis since this is the most used,
even when another orientation is selected.
2018-05-13 21:15:56 +02:00
570455fb83
EditMode: multi-object inset
...
D3305 by @jfmichaud31
2018-05-12 11:01:32 +02:00
194cba8ba4
Merge branch 'master' into blender2.8
2018-05-11 20:13:07 +02:00
925e775818
EditMesh: remove duplicate rip macro
...
Change the fill setting in the keymap,
this allows tool access the macro with either setting.
2018-05-11 20:02:12 +02:00
Dalai Felinto
8b41999ea0
Multi-Object: MESH_OT_loop_to_region by Oleg
...
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3253
2018-05-11 11:34:15 +02:00
Dalai Felinto
badd88ca02
Multi-Object: MESH_OT_screw by Nick Milios
...
With small changes.
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3276
2018-05-11 11:25:58 +02:00
Dalai Felinto
eacb2eb423
Multi-Object: MESH_OT_select_loose by Falk David
...
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3276
2018-05-11 11:13:09 +02:00
Dalai Felinto
9d0d7c375e
Multi-Object-Editing : MESH_OT_rip by Miguel Pozo
...
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3266
2018-05-11 10:59:00 +02:00
Dalai Felinto
1fd4449762
Fix memleak on MESH_OT_tris_convert_to_quads
2018-05-11 10:52:46 +02:00
b726ff4fc4
EditMesh: multi-object triangle fill
...
D3336 by @nabbydude
2018-05-11 08:41:04 +02:00
1d8e6c5cd0
EditMesh: multi-object select ungrouped
...
D3295 by @philippe-bachour
2018-05-11 08:21:26 +02:00
266638d783
EditMesh: multi-object recalculate normals
...
D3298 by @leonlg
2018-05-11 08:08:01 +02:00
e161c51e7f
EditMesh: multi-object select_interior_faces
...
D3334 by @ThaRemo
2018-05-11 07:59:16 +02:00
83a83a3d4b
Cleanup: whitespace, duplicate includes
2018-05-11 07:43:20 +02:00
8c96cb55c3
Fix add-manipulator cursor plane calculation
...
Now use the closest plane facing the view z axis.
2018-05-10 23:06:55 +02:00
3f3326af1c
EditMesh: add cube interactive tool
...
Initial add-cube tool which uses the scale cage to resize.
The 3D cursor is currently used to project the cursor onto.
We'll likely have more orientation options in the future.
2018-05-10 20:31:10 +02:00
b73c7381cc
EditMesh: multi-edit merge
...
D3226 by @pragma37
Note: edited so first/last option only applies to active mesh
since this doesn't make much sense to apply across objects.
2018-05-09 14:34:06 +02:00
Dalai Felinto
e42b8c32ab
Multi-object edit: MESH_OT_beautify_fill by Remi van der Laan
...
Maniphest Tasks: T54643, T54641
Differential Revision: https://developer.blender.org/D3291
2018-05-09 13:48:01 +02:00
Dalai Felinto
df49155cfb
Multi-object edit: MESH_OT_loop_multi_select by Oleg
...
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3245
2018-05-09 13:41:33 +02:00