Antonio Vazquez
b99c616b9b
Fix T68414: GPencil crash after using L key and Ctrl+Z in Draw Mode
...
There is a segment fault because the operator was in modal but the Ctrl+Z breaks the custom data. Now, the Ctrl+Z ends the operator.
2019-08-10 16:04:42 +02:00
Howard Trickey
b91643c711
Add Constrained Delaunay Triangulation routine to Blenlib.
...
See Design task T68277, and patch D5423.
This commit includes edits by @ideasman42 to patch in
branch temp-D5423-update, plus responses to his comments.
2019-08-10 08:24:20 -05:00
Antonio Vazquez
553b581f25
GPencil: Improves Close stroke when the closing gap is very small
...
For very small gaps, we don't need generate geometry.
2019-08-10 13:15:20 +02:00
Antonio Vazquez
77516c25e4
GPencil: Fix segment fault using Search menu
...
The poll was not checking Object type
2019-08-10 10:20:30 +02:00
Campbell Barton
a571ff2c16
Text: minor change to text prefix behavior
...
Don't keep the cursor at the start of the line,
this was creating a selection when adding a prefix without a selection.
2019-08-10 04:48:59 +10:00
Antonio Vazquez
d20d9aa3e8
Fix T68486: GPencil ehen interpolate strokes, only display one stroke not all
...
The drawing loop exit too early.
2019-08-09 20:28:12 +02:00
Sebastian Parborg
899c85a118
Fix T67821: Snap to Symmetry not updating
...
Added a missing depsgraph update.
2019-08-09 17:26:54 +02:00
Campbell Barton
c274151afe
Cleanup: move space types under DNA_DEPRECATED
...
Prevent accidental use
2019-08-10 00:05:12 +10:00
Campbell Barton
b88d4ae12e
Cleanup: remove redundant time check
2019-08-10 00:05:12 +10:00
Sybren A. Stüvel
e1665905df
Fix T68322: Shear in Dopesheet causes crash
...
The Shear transform operator is now disallowed in the timeline and
dopesheet editors.
Reviewers: campbellbarton
Differential Revision: https://developer.blender.org/D5440
2019-08-09 14:53:25 +02:00
Sybren A. Stüvel
9deb73df3d
Clarify "Save on Exit" tooltip
...
The old text, "Save modified preferences on exit" suggests that only the
modified preferences are saved. This is not the case: all preferences
are saved at once. This distinction is especially important after having
loaded factory default settings.
As discussed with @campbellbarton and @JulienKaspar.
2019-08-09 14:35:28 +02:00
Antonio Vazquez
97336dbb3d
Cleanup: Fix stupid style error in previous commit
2019-08-09 11:41:50 +02:00
Antonioya
8aa2f3b6ce
GPencil: Add "Self Overlap" parameter to materials to disable Stencil
...
This parameter was removed in 2.80 and we decided to back again, but now is inverted.
2019-08-09 11:37:02 +02:00
Campbell Barton
533e48520e
UI: expand on console menus
...
Some features weren't exposed anywhere in the interface.
D5443 by @tintwotin
2019-08-09 19:16:35 +10:00
Campbell Barton
634621d54d
BMesh: add utility to calculate normal from a vertex cloud
...
Extract from BM_verts_sort_radial_plane & simplify.
2019-08-09 05:44:27 +10:00
Campbell Barton
1eead85cdc
Cleanup: remove function already implemented in BKE_deform
2019-08-09 02:02:32 +10:00
Campbell Barton
47cd57eedc
Docs: improve description of 3D view distance offset utility
2019-08-09 01:55:05 +10:00
Campbell Barton
39b5b22174
Cleanup: use doxy sections
2019-08-09 01:55:05 +10:00
Campbell Barton
a0d9043f43
Cleanup: warnings
2019-08-09 01:55:05 +10:00
Bastien Montagne
e18e9aa0d0
Cleanup: Typo in naming (BLE instead of BKE, tssttt).
2019-08-08 17:20:39 +02:00
Bastien Montagne
1342d1879e
Fix T52551: undo causes crash after enabling a new rigid body when scene uses a referenced rigid body world.
...
Poll functions were not correct here, we cannot make objects part of
rigidbody sim if the RB collection is a linked one...
2019-08-08 17:20:39 +02:00
Antonio Vazquez
45ec08dc99
GPencil: Add mode Merge to Simplify modifier
...
This option uses the same logic of the merge by distance but as an option of modifier to allow dynamic merge.
This option will be very useful for LANPR generated strokes.
2019-08-08 17:16:17 +02:00
Antonioya
179e886ab3
GPencil: New Simplify modifier mode Sample and operator
...
This mode simplify the stroke doing a resampling of the points and generate new geometry at the distance defined.
Sample function developed by @NicksBest
New Resample Stroke operator
This operator recreates the stroke geometry with a predefined length between points.
The operator uses the same code used in Simplify modifier.
Reviewers: @mendio
2019-08-08 16:43:54 +02:00
Philipp Oeser
5ca3bc7a14
Fix T68393: lift hardcoded limit on particle children 'child_radius'
...
Reviewers: jacqueslucke
Maniphest Tasks: T68393
Differential Revision: https://developer.blender.org/D5436
2019-08-08 15:22:56 +02:00
Philipp Oeser
2fb42816cf
Fix T68375: Polyline: can not make segment (cyclic)
...
Reviewers: campbellbarton
Maniphest Tasks: T68375
Differential Revision: https://developer.blender.org/D5438
2019-08-08 15:13:49 +02:00
Campbell Barton
3504b4c9c3
Fix T68360: Zoom too sensitive with hi-dpi
...
Scale pixel-input by pixel size for zoom operators.
2019-08-08 22:53:30 +10:00
Campbell Barton
01aae653a1
Cleanup: use static for undeclared function
2019-08-08 22:51:01 +10:00
Antonioya
b9d0f33530
Fix T67545: GPencil - New Merge by Distance operator
...
Merge points when the distance is less than a predefined value.
The method to interpolate the position created a wrong merge. Now, always the secondary point is merged with the first one (merge at first), except the last point.
2019-08-08 14:13:01 +02:00
Philipp Oeser
9d4a8cbd88
2nd attempt to fix build error from rB22bdd08dfd08
...
sorry for the noise, if that doesnt do it, I'll revert and check this
thoroughly...
2019-08-08 10:44:32 +02:00
Philipp Oeser
6689614e39
attempt to fix build error from rB22bdd08dfd08
2019-08-08 10:38:01 +02:00
Philipp Oeser
22bdd08dfd
Fix T68250: Camera keyframing (Walk/Fly) despite canceling movement
...
Reviewers: campbellbarton (thx!)
Maniphest Tasks: T68250
Differential Revision: https://developer.blender.org/D5418
2019-08-08 09:41:19 +02:00
Jeroen Bakker
7bc300a74b
Fix T67587: Fix Drawing in Wireframe Non X-Ray Mode
...
When using Vertex or Weight paint mode on a wireframe the overlay was
blended with the background. In this case we now use alpha blending.
Reviewed By: fclem
Differential Revision: https://developer.blender.org/D5340
2019-08-08 08:00:57 +02:00
Jeroen Bakker
66356dae94
Fix T67638: Stretched Camera Background Images
...
The matrices that projects background images in the 3d view
were incorrect. The root cause was that the coordinate systems were not
respected, that was most noticeable when rotating a stretched image.
We re-validated conversions of coordinate spaces (UV -> Image -> Camera -> Window)
and made sure that the rotation is done in image space.
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D5431
2019-08-08 07:53:21 +02:00
Campbell Barton
ba0870713b
Fix T68268: Crash switching to Weight Paint mode
...
Also applied to sculpt mode
2019-08-08 04:36:43 +10:00
Campbell Barton
7c08cddedb
Fix unassigned return argument in recent select refactor
2019-08-08 04:36:43 +10:00
mano-wii
764cc75e1f
Edit Mesh Selection: Move ED_view3d_select_ functions to bf_draw
...
It is easier to deal with private values of the DRW_select engine and gives room for improvement.
Reviewers: campbellbarton, fclem
Differential Revision: https://developer.blender.org/D5415
2019-08-07 12:43:31 -03:00
mano-wii
9d7d34c12a
Select utils refactor: remove lagacy ED_view3d_select_id_read_rect
...
`ED_view3d_select_id_read_rect` serves only as a bridge to `DRW_framebuffer_select_id_read`.
Keeping these codes similar only increases the complexity of some functions.
Reviewers: campbellbarton
Differential Revision: https://developer.blender.org/D5415
2019-08-07 12:43:31 -03:00
Campbell Barton
dafecfa683
UV: select overlap operator
...
New operator to select overlapping UV's,
from all visible edit-mesh UV's.
D5421 @deadpin with edits.
2019-08-08 01:28:03 +10:00
Clément Foucault
3e27dd5b55
Fix T67623 Eevee: Modulo node making unexpected/inconsistent behaviour
...
This was a precision error. Using a more robust approach
2019-08-07 13:08:48 +02:00
Campbell Barton
be4063dbbb
Fix error in recent trackball aspect cleanup
...
Error in 7f8d620e20
2019-08-07 21:02:19 +10:00
Campbell Barton
b560e15028
Fix T68348: Hotkeys do nothing when over viewport gizmos
...
This was done intentionally so mouse press events tools didn't prevent gizmos
receiving click events before `USE_GIZMO_MOUSE_PRIORITY_HACK` was added.
2019-08-07 20:36:48 +10:00
Campbell Barton
8f8e91987b
Fix tool-tips remaining after operators start
...
It was possible for e.g. to have a header tooltip displayed,
then start walk-navigation which didn't close the tool-tip.
2019-08-07 20:36:44 +10:00
Campbell Barton
c3ef1f8db3
3D View: utility function to set the depth from a location
...
Avoids having to do projection/offset calculations inline.
2019-08-07 18:27:21 +10:00
Julian Eisel
85c843b115
Remove compiler fix for unsupported MSVC version
2019-08-07 01:55:16 +02:00
mano-wii
f4e27bc2c9
Fix not reported: Face selection sometimes does not work in weight, paint and texture mode.
2019-08-06 17:27:00 -03:00
Campbell Barton
00cb31de65
Cleanup: use BKE_ prefix for BKE_colortools.h
2019-08-07 03:38:01 +10:00
Campbell Barton
e2630f388d
Cleanup: clang-format
2019-08-07 03:34:59 +10:00
mano-wii
3227b37141
Fix Dopesheet transform regressions due to rB81dc76c19cff
...
Functions that begin with the name `apply` closely resemble the main callback to apply.
Ref T68137
2019-08-06 14:02:29 -03:00
Antonio Vazquez
317033a1be
Annotations: Remove Simplify option from Userprefs
...
This option was an old option for Grease Pencil tools and it's not logic for Annotations.
Differential Revision: http://developer.blender.org/D5426
2019-08-06 18:53:39 +02:00
mano-wii
467b0aa227
Fix T68320: measure tool memoryleak
...
It was a stupid mistake with the wrong pointer being referenced.
It was a serious problem because the memory leak was considerable.
2019-08-06 12:50:08 -03:00