b6a0027de3
Gizmo: add event argument to invoke_prepare callback
2019-05-27 23:59:36 +10:00
c7f67d60fb
Cleanup: comments (long lines) in editors
2019-04-29 19:29:41 +10:00
e12c08e8d1
ClangFormat: apply to source, most of intern
...
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
2019-04-17 06:21:24 +02:00
14884cda1f
Gizmo: move transform to a persistent option
...
Based on feedback from animators, this is useful to keep as a view
option (as in 2.7x).
Now the transform gizmos can be enabled from the popover,
the tools still work for location/scale/rotation.
The transform tool has been removed.
See T63518
2019-04-13 20:58:25 +02:00
69665bc7f0
RNA: move cursor into own struct
...
Without this it's impractical to subscribe to any change to the cursor.
Fixes T61969 by having gizmos update on any change to the cursor.
2019-03-01 12:41:40 +11:00
de13d0a80c
doxygen: add newline after \file
...
While \file doesn't need an argument, it can't have another doxy
command after it.
2019-02-18 08:22:12 +11:00
46ac288a93
Cleanup: rename V3D_MANIP_* -> V3D_ORIENT_*
...
Wasn't obvious it's related to orientation,
also term manipulator is no longer in use.
2019-02-08 15:22:15 +11:00
eef4077f18
Cleanup: remove redundant doxygen \file argument
...
Move \ingroup onto same line to be more compact and
make it clear the file is in the group.
2019-02-06 15:45:22 +11:00
65ec7ec524
Cleanup: remove redundant, invalid info from headers
...
BF-admins agree to remove header information that isn't useful,
to reduce noise.
- BEGIN/END license blocks
Developers should add non license comments as separate comment blocks.
No need for separator text.
- Contributors
This is often invalid, outdated or misleading
especially when splitting files.
It's more useful to git-blame to find out who has developed the code.
See P901 for script to perform these edits.
2019-02-02 01:36:28 +11:00
6dfe6b4f19
Fix T58199: Spin tool top bar settings don't apply
2019-01-23 16:15:01 +11:00
b4a77a351e
Cleanup: add trailing commas to structs
2019-01-07 09:15:07 +11:00
f7dc6a63fb
Gizmo: optional custom orientations for transform
...
This aims to resolve a conflict where some users want to keep keyboard
axis setting global, even when the orientation is set to something else.
Move/rotate/scale can optionally each have a separate orientation.
Some UI changes will be made next.
2018-12-19 20:57:51 +11:00
7493848008
3D View: remove 3D cursor
...
Use 3D cursor from the scene (was previously used for local-view).
2018-11-26 14:02:09 +11:00
4c22807e69
Cleanup: style
2018-10-03 08:10:48 +10:00
c14949e9ed
Gizmo: move spin tool axis option into gizmo-group
...
Having this setting here wasn't correct (the operator ignores it).
2018-10-02 17:09:53 +10:00
dce12293d0
WM: generalize tool property initialization
...
Prepare for storing different kinds of properties in tools.
2018-10-02 15:39:20 +10:00
58adc58661
Merge branch 'master' into blender2.8
2018-09-27 15:49:59 +02:00
d1bac6f70d
Spin Tool: match dial orientation to active gizmo
2018-09-26 16:31:31 +10:00
f5c4cc877e
Spin Tool: option (disabled) for gizmos to follow selection
...
Disable since this causes multiple axis to overlap too often.
It's also glitchy since we don't have a good way to detect
changes to selection.
2018-09-26 14:36:23 +10:00
bd79ea03cb
Correct error in last commit
...
Didn't account for non-identity orientation.
2018-09-26 13:30:15 +10:00
12cfa13470
Spin Tool: correct the initial redo dial rotation
2018-09-26 13:08:02 +10:00
518451757e
Gizmo: dial support for a click setting a value
...
Useful for click w/o drag to spin a full revolution.
2018-09-25 15:15:38 +10:00
ebdeb3eca0
Gizmo: support spin tool normal flipping
...
Use the 2x spin tool has 2x handles to control normal direction,
dragging either handle backwards now reverses normals.
Previously it was common for the spin result to have normals
flipped the wrong way.
2018-09-25 14:24:19 +10:00
3d860f53e8
Gizmo: hide redo gizmo when spin tool not active
...
Selecting a another tool left the gizmo,
which could overlap other tools gizmos.
2018-09-24 17:13:16 +10:00
6db79dafb3
Gizmo: show partial arc & icons for spin tool
2018-09-24 17:06:55 +10:00
c3d46694e2
Gizmo: add spin-tool rotate on view axis
...
This also acts to catch stray click events so missing a gizmo
doesn't move the cursor or execute another spin action.
2018-09-24 10:13:39 +10:00
7a3474ddfd
Gizmo: spin tool XYZ axis toggles
...
New handle type for initial spin,
gives clear differentiation between do & redo (similar to extrude).
Some tweaks still required to match T56571.
2018-09-21 13:48:22 +10:00
3266ebf9e5
Gizmo: enable spin tool redo gizmos again
...
- Add x,y rotate and translate controls.
- Remove x-depth adjustment.
2018-09-21 13:34:29 +10:00
9dac8633d6
Merge branch 'master' into blender2.8
2018-09-20 12:51:16 +10:00
ce56088bcd
Gizmo: use ED_view3d_win_to_3d_on_plane
2018-09-20 11:38:11 +10:00
2c30922e2c
Fix spin/rotate gizmo not updating view orientation
...
Check for navigation didn't refresh when navigation was completed.
2018-09-20 10:19:59 +10:00
574484006b
EditMesh: show the spin arc as a thin ribbon
...
Closer to the design from T54661
2018-09-19 17:52:13 +10:00
6c7ad56f00
EditMesh: orient spin arc to follow the cursor
2018-09-19 16:41:56 +10:00
88cd23914f
Gizmo: dial3d option to show the final angle
...
Was showing modal-delta-angle, which isn't useful for the spin tool.
2018-09-19 13:35:15 +10:00
d421adb83e
Gizmo: de-duplicate poll logic
...
Checking the active tool or operator was a common way to check
if the gizmo was still in use.
2018-09-18 16:15:06 +10:00
0a3b66cfb5
Gizmo: dial3d option to get angles w/o wrapping
...
Needed for spinning multiple revolutions.
2018-09-18 14:58:20 +10:00
add961c209
Correct view orientation update in last commit
2018-09-18 14:04:55 +10:00
e16e17486b
Gizmo: use spin widgets by default
...
- Now the spin tool has a persistent gizmo.
- Uses scene orientation, with additional view orientation.
- Uses the cursor center, ignoring the pivot since the
selection center is rarely useful.
- Disable most of the redo gizmo's for now since they overlap,
only allow adjusting the angle.
Note: mixing new action with adjusting previous is confusing,
we'll want to have design guidelines regarding this.
2018-09-18 13:44:41 +10:00
67f3f31f00
Cleanup: spin redo naming changes
2018-09-18 13:22:14 +10:00
2ca7d14814
Cleanup: spin redo naming changes
2018-09-18 09:58:27 +10:00
2f8994f4af
Cleanup: spin redo naming changes
2018-09-18 09:55:20 +10:00
03bccd0010
Cleanup: move editmesh spin gizmo into own file
...
To mix both initial spin and redo ends up being more involved,
move into own file.
2018-09-18 09:51:12 +10:00