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
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
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
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
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
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
Antonioya
4a72408124
GP: Do not use UI pixel scale for strokes
...
This scale value only must affect the interface, but never the stroke.
2018-09-30 11:49:02 +02:00
Antonioya
f1afa6f6a7
GP: implement Shadow FX (wip)
...
Initial implementation of effect to create a drop shadow of the strokes
2018-09-30 11:49:02 +02:00
mano-wii
f36efe0e2a
Fix mysterious crash when using textureGather on Intel drivers.
...
The crash occurs in a shader with uniform block of a certain size and misaligned.
2018-09-29 16:56:47 -03:00
Antonioya
7e26991472
GP: Fix Thickness modifier error for strokes with few points
2018-09-29 18:07:54 +02:00
Dalai Felinto
3fe56ee8e7
Fix mixed drawing face and edge checks in draw manager
2018-09-29 12:22:44 -03:00
Antonioya
631ddc5acc
GP: New parameters for instance modifier: Material and On Top
...
Now it's possible to define what material is used in the generated strokes and if the strokes are put in front of the original (default) or keep the original in front.
Before, the generated strokes have been always on top of the original because they were drawn later.
2018-09-29 16:54:16 +02:00
Antonioya
2ca67de960
A new function to move list at the beginning of another list
...
This is a change of the BLI_movelisttolist but in reverse order.
2018-09-29 16:45:33 +02:00
Dalai Felinto
0f9b7560db
Multi-Objects: ARMATURE_OT_switch_direction
2018-09-28 19:11:27 -03:00
Dalai Felinto
3a8b56ce24
Multi-Objects: ARMATURE_OT_armature_layers
2018-09-28 19:06:07 -03:00
Dalai Felinto
bfb0ebc3d1
Multiple-Objects: ARMATURE_OT_dissolve
2018-09-28 18:43:23 -03:00
Dalai Felinto
47cf8bd928
Multiple-Objects: ARMATURE_OT_flip_names
2018-09-28 18:23:32 -03:00
Dalai Felinto
f4fe3f1975
RNA: Cleanup - remove no longer needed get/set functions
...
Left over from rBbdbf4471a6c4ba2d444eea5e7f0e6984b3aaafc2.
2018-09-28 16:54:17 -03:00
Dalai Felinto
c87d6048b9
Multi-Objects: Fix edit mesh texts drawing in the wrong place
...
It was always drawing on the active object localspace.
2018-09-28 13:40:51 -03:00
Dalai Felinto
62aee662ae
Fix errors for show_occlude_wire not in view3d.overlay
2018-09-28 12:31:25 -03:00
Dalai Felinto
ffb424c85f
Multi-Objects: MESH_OT_sort_elements
...
Based on D3330 by Falk David
2018-09-28 12:31:25 -03:00
Antonioya
c78d83bca7
GP: Set pixel shader fx lines to OFF by default
2018-09-28 16:52:20 +02:00
Dalai Felinto
0f03750f4f
Cleanup: Remove bmo_similar.c and small renaming
2018-09-28 10:32:04 -03:00
Dalai Felinto
75b2091d42
Multi-Objects: Select similar vertex: SIMVERT_VGROUP
...
I'm storing the name of the vertex groups in a gset. This way
we can select vertex groups with the same name across different
objects.
Also this is the last select similar mode that needs porting o/
2018-09-28 10:25:23 -03:00
Jacques Lucke
3341d42ad5
Fix T56947: Copy text from disabled search menu crashed
...
Reviewers: brecht
Differential Revision: https://developer.blender.org/D3745
2018-09-28 14:12:25 +02:00
Sergey Sharybin
b880c13c3a
Merge branch 'master' into blender2.8
2018-09-28 13:58:30 +02:00
Brecht Van Lommel
45271007cf
Fix T56905: unsupported channel layout error writing AAC audio.
...
This uses same mapping as Audaspace to specify channel layout, which was
missing before.
2018-09-28 12:07:05 +02:00
Brecht Van Lommel
29c8c6cf4f
Fix T56940: crash rendering with OpenGL as engine.
2018-09-28 10:39:20 +02:00
Sergey Sharybin
89264d8c40
Make struct initialization happy for CLang
2018-09-28 10:13:56 +02:00
Sergey Sharybin
c72770d1cb
Subdiv: Return enumerator of proper type
...
Was harmless, that code is never to be reached.
2018-09-28 10:13:18 +02:00