eb8e656b2b
Cleanup: spelling
2019-03-08 17:48:49 +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
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
744f633986
Cleanup: trailing commas
...
Needed for clan-format not to wrap onto one line.
2019-02-03 14:59:11 +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
1e4aab36c2
Cleanup: remove redundant BKE/BLI/BIF headers
2019-01-26 21:20:25 +11:00
e305560f13
Cleanup: add trailing commas to structs
...
Needed for clang formatting to workaround bug/limit, see: T53211
2019-01-07 00:34:48 +11:00
085e5765df
Cleanup: remove flag from GizmoCommonData
...
Use struct member instead,
there are already many gizmo flags to keep track of.
2018-12-03 13:01:04 +11:00
4978ef5ed5
Fix T58573: Camera lens gizmo error on click
2018-12-03 12:55:55 +11:00
cfdd902d2d
Fix debug build after recent changes.
2018-10-18 15:32:54 +02:00
5869bf5002
Cleanup: fix compiler warnings.
2018-10-18 12:19:06 +02:00
5b86899f21
Mesh: remove DerivedMesh for face-map drawing
2018-10-15 15:12:36 +11:00
54931324f5
Fix diagonal line artifact in view navigate icons.
...
Thanks to Clément for finding the fix!
2018-10-10 17:47:26 +02:00
85944a2d7e
Image Empties: Usability improvements and fixes
...
- new "Align to View" option when loading a new image
- automatically align to view when dropping an image into a viewport
- larger default size for image empties
- fix image empty gizmo in orthographic view
- new "Align Objects to View" operator
Reviewer: brecht
Differential: https://developer.blender.org/D3778
2018-10-09 14:36:15 +02:00
e7218e7049
Cleanup: naming
...
- immAttrib* -> immAttr*
- immSkipAttrib -> immAttrSkip
Term 'attr' is a convention for GPU module.
2018-10-09 11:01:50 +11:00
44df83a588
Dial3d Gizmo: consider the offset value in the incremental angle drawing.
...
This prevents misalignment with the Spin tool gizmo for example.
2018-10-05 10:43:06 -03:00
971ab57c7d
Cleanup: style
2018-10-04 09:33:49 +10:00
a04155dd52
ED_gizmotypes_dial_3d_draw_util: use a struct to hide most parameters.
2018-10-03 19:59:35 -03:00
dfce96dbf7
Dial3d Gizmo: Add the Incremental Angle option to snap.
2018-10-03 17:45:55 -03:00
65e577d222
Dial 3d Gizmo refactoring.
...
Transform the gizmo's drawing function into a generic function for use in other parts of the code.
2018-10-02 23:00:29 -03:00
6baea955bf
UI: use new 3D viewport navigation icons and image icon in add menu.
...
I had to make the viewport navigation icons a bit smaller in the SVG since
the edges were being clipped off, we only support 16x16 icons currently.
They are a bit blurry because of this.
2018-09-27 20:11:10 +02:00
58adc58661
Merge branch 'master' into blender2.8
2018-09-27 15:49:59 +02:00
c67a51db42
Gizmo: initial snap support for move
...
This allows the gizmo to snap to 3D view elements,
Although currently this isn't usable gizmo's that use operator redo.
2018-09-26 17:38:09 +10:00
4a6ee9c4c2
Gizmo: support for cancelling move3d modal changes
2018-09-26 16:44:45 +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
1040e4008c
Gizmo: reset dial value on cancel
2018-09-25 14:37:19 +10:00
6457aaa420
Gizmo: dial3d option to draw a partial arc
2018-09-24 17:06:04 +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
7deb38eec6
Gizmo: fix incorrect dial clip scaling
...
Failed with obvious error when the dials scale wasn't 1.0
2018-09-21 10:30:55 +10:00
e8c27b1bba
Cleanup: use win_to_3d_on_plane function
2018-09-20 12:53:39 +10:00
9dac8633d6
Merge branch 'master' into blender2.8
2018-09-20 12:51:16 +10:00
6672019484
Gizmo: use simple unclipped win_to_ray function
...
When projecting the cursor onto a plane, clipping isn't important.
2018-09-20 12:13:11 +10:00
1a2e41a0f2
Cleanup: renaming missed from merge
2018-09-20 12:05:10 +10:00
ce56088bcd
Gizmo: use ED_view3d_win_to_3d_on_plane
2018-09-20 11:38:11 +10:00
ba38206608
Gizmo: tweaks to dial drawing
...
- Add Arc-Inner-Factor, to increase the inner arc radius from 0
(show as a disk).
- When showing an angle value, show the angle-end line thicker
(since thats whats being adjusted).
- Remove offset used by arc drawing which caused aliasing artifacts.
2018-09-19 17:47:15 +10:00
3b4782dc24
Gizmo: exclude arc from selection
...
Also disable polygon smooth before drawing arc.
2018-09-19 16:47:07 +10:00
40ac38f18d
Gizmo: remove matrix rotation for the dial gizmo
...
This makes it impossible to rotate the gizmo using the matrix Y axis.
Testing without this and I can't find any cases it breaks.
2018-09-19 16:22:01 +10:00
414e5fe068
Correct polygon_smooth being left enabled
2018-09-19 15:32:28 +10:00
2065669716
Cleanup: comments
2018-09-19 13:41:52 +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
0a3b66cfb5
Gizmo: dial3d option to get angles w/o wrapping
...
Needed for spinning multiple revolutions.
2018-09-18 14:58:20 +10:00
2b57222ece
Gizmo: add snap & tweak to the dial widget
...
Allows holding Ctrl to snap w/ the spin tool.
2018-09-18 14:38:05 +10:00
f677ff274c
Cleanup: group gizmo dial members into structs
2018-09-18 14:13:35 +10:00
f409c1ec93
Gizmo: only respond to mouse-move events
...
Missed in recent update to event handling.
2018-09-17 14:30:41 +10:00
1e3d6ae09b
Gizmo: only use mousemove for generic gizmos
...
This caused slow performance for spin/bisect for eg.
2018-09-14 00:10:59 +10:00
80f083f993
Gizmo: avoid redundant value2d updates
2018-09-13 22:25:15 +10:00
00bdd04570
Gizmo: set header text when editing the value
2018-09-13 22:15:44 +10:00
8326fe7aa5
Gizmo: value2d cancel, snap & precise support
2018-09-13 22:04:54 +10:00
1f1802307f
Gizmo: value2d utility to adjust operator values
...
This allows any operator to interactively redo without having to
manually make each operator modal.
2018-09-13 09:10:19 +10:00
26a6e58e9a
Cleanup: add editor gizmo doxy group
2018-09-13 08:33:21 +10:00