e159ec8bc1
Cleanup: compiler warnings, use const
2018-05-14 23:12:51 +02:00
bf7c46cae0
Transform: Use the new BLI_bvhtree_find_nearest_projected function to snap.
2018-05-14 16:08:17 -03:00
9d677212ee
Transform: fix regression in bound-box calculation
...
Error in multi-object merge.
2018-05-13 07:20:35 +02:00
59c6487e93
Merge branch 'master' into blender2.8
2018-05-13 06:56:51 +02:00
b99d064e91
Cleanup: trailing space
2018-05-13 06:44:03 +02:00
7a56d31af3
Fix 3D view axis align flag
...
Missed from recent pivot-point move to scene.
2018-05-13 06:38:43 +02:00
6c6a394373
Cleanup: Remove unused member.
2018-05-12 23:39:36 -03:00
0d9f77d954
transform_snap_object: perf: Check the distance of the bound_box of objects of type armature and curve first.
...
And remove unused variables.
2018-05-12 19:39:21 -03:00
375c6a7967
Cleanup: transform_snap_object: Remove unused variables and reuse the precalc used to test the distance to the projected bound_box.
2018-05-12 19:10:23 -03:00
1422c0650c
UI: move pivot to the topbar
...
Pivot variables are now stored in scene toolsettings.
2018-05-12 22:04:45 +02:00
1813f00b94
Fix missing fallback in recent aabb precalc func
...
Also comment unused vars
2018-05-12 08:19:20 +02:00
be8add5d50
Refactor: Move functions to get the distance to a projected aabb to BLI_match and remove confusing parameters.
2018-05-11 20:20:51 -03:00
334b1cf92f
Cleanup: warnings
2018-05-10 19:07:03 +02:00
55389d4899
Transform: Make snapDerivedMesh use bvhtrees from loose edges and bvhtrees from loose verts.
...
Bvhtrees take up a lot of memory space, reusing the common bvhtree of looptris to snap to vertices and edges is a good way to save memory.
Unfortunately we have a worsening performance in the snapping operation around 63% (addition to the original time).
But as we often do not need to build a bvhtree of loose verts and loose edges, we have an improvement in cache time :)
Since the CPU time of snapping operations (no matter how higth poly the object is) corresponds to less than 0.01% of all CPU time of a blender frame, that change is not really significant.
Snapping operations on a mesh in edit mode have not changed significantly.
Signed-off-by: Germano <germano.costa@ig.com.br >
2018-05-10 13:40:30 -03:00
27da2db0ca
3D View: utility to get matrix from cursor
2018-05-10 12:24:07 +02:00
e65a2cb52c
Fix crash moving grease pencil frames
2018-05-09 14:09:05 +02:00
d1cd872fef
ED_transform: Port ED_transform_snap_object to new Mesh-based system.
...
Differential Revision: https://developer.blender.org/D2896
2018-05-08 20:04:32 -03:00
579c01da60
Extrude Widget: with/without axis constraint
2018-05-08 20:30:29 +02:00
fa69ce9e3a
Cleanup: whitespace, duplicate includes
2018-05-08 16:57:07 +02:00
a48186c5d7
Orientation for 3D cursor
...
Currently set when setting the cursor location,
optionally used as an orientation type.
Intended for use by tools too.
See: D3208
2018-05-08 15:35:04 +02:00
eefaec4114
Extrude Widget: Add orientation to topbar
...
Add extrude operator that's intended to work on the current selection
and be activated as a tool.
2018-05-07 21:40:51 +02:00
170223804b
Extrude Widget: orient correctly w/ rotated object
2018-05-07 21:40:51 +02:00
1a81ac7d9a
Fix update for manipulator w/ 3D cursor change
2018-05-06 16:41:32 +02:00
2fe954f23e
Cleanup: transform manipulator filename
...
Use matching 2d/3d suffix.
2018-05-06 16:14:10 +02:00
541258bfa6
Merge branch 'master' into blender2.8
2018-05-06 16:00:27 +02:00
84474b0171
Object Snap: add object & matrix to view ray cast
...
Some snap functions already exposed this.
2018-05-06 15:56:09 +02:00
b7d7bbfc48
Fix extrude glitch where undo state was visible
2018-05-06 11:50:56 +02:00
47de0321bf
Transform: support initial offset option
...
Needed to redo extrude+transform macro w/o resetting the translation.
2018-05-06 10:14:16 +02:00
844a17a3d9
Transform: use bool when local matrix is needed
...
Existing code checked pose/edit mode to check for transforming in an
objects local space.
This added many similar checks all over the code,
which leads to confusion.
Multi-edit caused a regression in UV transform since where UV's
had the object matrix applied by accident.
Now there is a boolean to use a local matrix,
this allows for any mode to have a 4x4 matrix
applied w/o adding mode specific checks everywhere.
2018-05-04 15:18:27 +02:00
90e61275d3
Fix mistake in boundbox center
2018-05-04 15:18:27 +02:00
a9d264f5ca
Merge branch 'master' into blender2.8
2018-05-03 14:33:52 -03:00
ac19483e63
BKE bvhtree: Add tree_type parameter to bvhtree_from_mesh_get.
...
This will allow greater control of the bvhtrees that are obtained, and helps identify problems.
It is also an additional step to unify the functions.
2018-05-03 14:26:39 -03:00
e684e0ec95
Cleanup: fix warnings, removed unused code.
2018-05-03 16:33:12 +02:00
Dalai Felinto
9c78d9ba9f
Fix pose transformation helper lines
...
This was broken since 33bb8b785a (triple-buffer changes).
This also helps help lines as a whole.
2018-05-03 13:05:38 +02:00
7840c593b8
Cleanup: remove axis bounds ifdef
...
This was added for scale-cage manipulator, but seems generally useful.
2018-05-03 07:21:06 +02:00
51aba69b89
Transform: expose 3D center/axis calculation
...
This is needed for other manipulator placement.
2018-05-03 07:19:33 +02:00
5659d8bc0a
Merge branch 'master' into blender2.8
2018-05-02 14:40:00 +02:00
522bee3fc8
Refactoring: bvhutils: Use a function that gets the bvhtree through an identifier type.
...
Reviewed By: @campbellbarton
Differential Revision: https://developer.blender.org/D3192
2018-05-01 10:03:28 -03:00
98fe9da37d
Add NULL check for transform manipulator
...
Removes need for empty keymap
2018-04-30 12:14:10 +02:00
159a7e8b38
UI: replace transform hand icon w/ 4 arrows
...
The hand doesn't have a hotspot which you might want using manipulators
2018-04-28 09:14:02 +02:00
617534327a
Cleanup: style, duplicate includes
2018-04-28 09:02:22 +02:00
c42a47d177
UI: add new transform tool that enables all widgets
...
Also add bevel tool.
2018-04-27 22:49:52 +02:00
7fcdccbb6c
Fix vertex slide regression from multi-edit
...
- Invalid casts.
- Leaked memory on mode switching.
2018-04-26 10:18:03 +02:00
5f8b85e253
Cleanup: use blender terminology
2018-04-25 10:17:31 +02:00
6866547517
Fix cursor switching w/ transform redo
...
Recent cursor changes stopped number button continuous grab.
2018-04-25 10:15:20 +02:00
3ae4aa720f
Cleanup: indentation
2018-04-25 10:10:00 +02:00
40199c1d10
Manipulator: Use evaluated object's matrix to get maipulator position
...
With the clear separation between data and a state we need to make sure
operators and other areas are readingstate from evaluated datablocks.
Code-wise it means that all evaluated values are to be read from dataglock
which is owned by dependency graph, using DEG_get_evaluated_id() or similar
helper.
Reviewers: brecht, mont29, campbellbarton, dfelinto
Differential Revision: https://developer.blender.org/D3036
2018-04-24 14:50:40 +02:00
46a0e72540
Merge branch 'master' into blender2.8
2018-04-23 12:59:57 +02:00
8264b772f5
Fix T54766: "Record With"-NLA "Push Down" discards Blend Mode, Extrapolation, and Influence
...
Applied similar fix to T54233 to get the "Record with NLA" feature working with
active action blending + influence settings. Extrapolation is explicitly ignored
though, as it shouldn't be used with this feature (i.e. it is already disabled
with the new strips and also on the animdata by default)
2018-04-23 12:35:37 +02:00
574c0fe38f
Manipulators/Tools: always draw a cursor while interacting
...
Cursor can be a system one or drawn with OpenGL.
Before, dragging the transform manipulator would hide the cursor and reset it to the initial positon.
2018-04-23 00:59:01 +02:00