Commit Graph

80904 Commits

Author SHA1 Message Date
Campbell Barton
dce12293d0 WM: generalize tool property initialization
Prepare for storing different kinds of properties in tools.
2018-10-02 15:39:20 +10:00
Campbell Barton
0e7a592c3c WM: report error w/ unknown operator name 2018-10-02 15:28:14 +10:00
Campbell Barton
5db328c063 Correct extrude tool operator references
Caused incorrect tooltips.
2018-10-02 15:17:00 +10:00
Campbell Barton
1e526de9bd Merge branch 'master' into blender2.8 2018-10-02 11:19:11 +10:00
Campbell Barton
bf37c93533 Correct tooltip 2018-10-02 11:17:31 +10:00
Philipp Oeser
60d4d58376 Fix T56990: AutoIK fails
Regression from 5d628c519
2018-10-02 10:10:26 +10:00
mano-wii
3aed08377d GPY Python: program_use_begin and program_use_end.
The user has to be encouraged to use the `program_set` or `program_set_builtin` before drawing.
This avoids problem with gl_context.
2018-10-01 13:58:51 -03:00
Clément Foucault
b77191c035 UI: Fix Xray alpha slider being incorrectly greyed out 2018-10-01 18:56:26 +02:00
Clément Foucault
8ed17c37c5 DRW: Fix unselectable wire object in solid mode 2018-10-01 18:56:26 +02:00
Brecht Van Lommel
238d30169f Templates: tweaks to startup templates, add sculpting template. 2018-10-01 17:32:59 +02:00
Brecht Van Lommel
ac0dfcced3 UI: start maximized on X11 if possible, like other platforms. 2018-10-01 17:29:48 +02:00
Brecht Van Lommel
f40ff62647 Fix app template __init__.py not running without a userpref.blend. 2018-10-01 17:16:43 +02:00
Brecht Van Lommel
6afd5292e2 Fix Cycles Python warnings related to annotations. 2018-10-01 17:16:43 +02:00
Brecht Van Lommel
fd0250f1bc UI: collapse some paint / sculpt panels by default. 2018-10-01 17:16:43 +02:00
Brecht Van Lommel
057f2a1878 UI: use backdrop circle for navigation icons, make clickable area bigger.
This will look a bit better once the icon outline is gone.
2018-10-01 17:13:08 +02:00
Antonioya
ffcc4be3bb GP: Change Blur default parameters for Rim and Shadow effects. 2018-10-01 16:42:12 +02:00
Antonioya
a3afcae39e GP: Add Blur to Shadow FX
The shadow needed a blur to make soft transitions and get a better effect.
2018-10-01 16:31:04 +02:00
Pablo Vazquez
c234c3db1b UI: Update theme colors for pie menu selected items 2018-10-01 15:28:47 +02:00
Pablo Vazquez
832f5d36e5 UI: Color the inside of pie menu items when selected
Follows the same as other selected/active items in the UI.
Tested in Default theme, 2.7x, 2.4x, Flatty Light and Amaranth
all seem to work fine.
2018-10-01 15:28:47 +02:00
Clément Foucault
212ce03aaf Edit UVs: Fix missing wires with multiple windows
All that was needed is a VAO refresh. It's not a performance problem
because it only concerns a handful of batches.
2018-10-01 15:14:46 +02:00
Clément Foucault
283f0ae9af Edit UVs: Refactor drawing Shadow UV in Image Editor
Currently it's not showing the subdivided mesh (if there is a subdiv mod)
and there is some sync issue if there is multiple uv image space opened.
But thoses will be tackled later on. The purpose of this commit is to fix
the overflow issue of IMM and speed issue.
2018-10-01 15:14:46 +02:00
Clément Foucault
3a9ee33328 GPU: Fix partial draw of batches with index buffers 2018-10-01 15:14:46 +02:00
Clément Foucault
781995a09c Edit UVs: Refactor drawing Edit UV in Image Editor
NOTE: This commit only concern edit UVs and not the "shadow" mesh displayed
when texture painting. This will be address in a future commit.

We now cache the uv mesh in the mesh batch cache and only reupload data on
changes.

Update could be more granular (and a bit faster) but it's not our main
concern ATM.

This should fix problem caused by the IMM api used to draw large meshes.
This makes performance skyrocket compared to previous implementation.
There is still a big CPU bottleneck when not in sync selection mode but it
is not related to the drawing function directly.
2018-10-01 15:14:46 +02:00
Clément Foucault
a5101de6a9 BLI: Add mul_v2_v2v2 function 2018-10-01 15:14:46 +02:00
Alexander Gavrilov
e38a0b3748 Shrinkwrap Constraint: implement projection features from the modifier.
Allow raycasting in two directions and culling front or back faces.

Also implement a new Invert Cull option in both constraint and
modifier that can be used to aim for faces aligned with the project
axis direction when raycasting both ways.

Reviewers: mont29

Differential Revision: https://developer.blender.org/D3737
2018-10-01 15:47:03 +03:00
Antonioya
be0e58d980 GP: Fix Shadow rotation bug 2018-10-01 11:36:18 +02:00
Alexander Gavrilov
534009098e Remove obsolete weight paint color computation code.
The new weight paint drawing code converts weight to color
directly in the shader, so the old CD_PREVIEW_MLOOPCOL based
code is not needed anymore.
2018-10-01 11:02:24 +03:00
Campbell Barton
d64e60340f 3D View: use context mode string for sidebar
When moving panels from the toolbar to the sidebar,
'bl_context' is now used for filtering panels in both places.
2018-10-01 16:58:28 +10:00
Campbell Barton
c06333d77b Object Join: use 'selected_editable_objects'
Was using 'selected_editable_bases', which used to save a lookup.
This is no longer the case and complicates access from Python
which cant yet easily access Bases.
2018-10-01 16:45:57 +10:00
Brecht Van Lommel
786870e26f Fix T56909: wrong interface scale on macOS 10.14, when using 10.14 SDK.
This does not affect existing releases as far as I can tell, only new builds
using the new SDK have the problem.
2018-10-01 08:35:32 +02:00
Campbell Barton
5fca5c8065 Merge branch 'master' into blender2.8 2018-10-01 14:06:24 +10:00
mano-wii
d6ca699d7e BLI_math: add isect_seg_seg_v3 2018-10-01 13:52:00 +10:00
mano-wii
9df476ecaa BLI_math: add isect_seg_seg_v3 function and use in the cloth collision algorith.
In my tests a 4% improvement in performance was achieved by simulating a square cloth over the cube.
2018-10-01 00:16:44 -03:00
Campbell Barton
1f2c4f8809 Cleanup: use standard prefix for boolean settings
Avoid using 'add' as a prefix, it reads like a method.
2018-10-01 12:00:08 +10:00
Campbell Barton
12c49d05c6 Fix freed memory use w/ panel unregister 2018-10-01 10:32:48 +10:00
Campbell Barton
bda7a333a3 Cleanup: use tuple unpacking 2018-10-01 09:20:32 +10:00
Campbell Barton
0256d8b4e2 Cleanup: pep8, unused import 2018-10-01 09:20:32 +10:00
Campbell Barton
8ee4fd0bdf Cleanup: style 2018-10-01 09:20:31 +10:00
Bastien Montagne
3cd98d9ef7 Fix T56981: python .scene_raycast returned object is not selectable.
Was returning COW evaluated object, not actual data-block...
2018-09-30 23:54:11 +02:00
Bastien Montagne
3a09ff77a1 Fix T56879: Blender2.8 Crash when Editing Text on Curve.
Moving cursor in 3D text edit mode calls `BKE_vfont_to_curve_ex()`,
which expects to work with evaluated data (curve cache runtime etc.).
2018-09-30 21:37:32 +02:00
Brecht Van Lommel
bbd3ac73bc Fix T56396: Cycles wrong object motion blur with deformation blur disabled. 2018-09-30 19:34:34 +02:00
Brecht Van Lommel
0722981e99 Fix T56909: wrong interface scale on macOS 10.14, when using 10.14 SDK.
This does not affect existing releases as far as I can tell, only new builds
using the new SDK have the problem.
2018-09-30 19:33:41 +02:00
Antonioya
40f10fe11a GP: The primitive line must not enable cyclic mode 2018-09-30 18:45:45 +02:00
Antonioya
da032bdf23 GP: Cleanup and remove old debug code 2018-09-30 18:26:50 +02:00
Antonioya
5c184c4fec Fix T56984: GP: Materials: Isolate (lock/visibility) buttons don't work. 2018-09-30 17:36:07 +02:00
Bastien Montagne
0bb9ebd058 io_utils: remove orientation_helper_factory.
Now we only use orientation_helper decorator.
2018-09-30 17:30:29 +02:00
Antonioya
ec06532cef GP: New option to disable lasso while drawing
Now it's possible to disable the lasso effect of the fill color while drawing with a fill color.

This sometimes is required to see the lines and it's the first step to implement a new lasso brush.
2018-09-30 16:21:28 +02:00
Antonioya
60935cb9d8 GP: Ensure falloff curve is always initializated 2018-09-30 15:59:10 +02:00
Antonioya
8c3077ff94 Fix T56970 GP: Sculpt mode : Grap tool doesn't work 2018-09-30 13:54:23 +02:00
Antonioya
419fd80d46 GP: Fix error in mutiedit if curve is not available 2018-09-30 12:54:17 +02:00