Campbell Barton
585e4848e1
3D View: Support vert & weight paint mask clipping
2019-01-22 22:22:20 +11:00
Sergey Sharybin
9c61107ba5
Cleanup: Silence pedantic compiler warning
...
Was happening in release builds.
2019-01-22 12:05:48 +01:00
Sergey Sharybin
362331f0ff
Cleanup: Remove unused variable
2019-01-22 12:02:35 +01:00
Sergey Sharybin
b2a15de887
Fix T60575: Multiresolution Crashes when appliing more subdivisions
...
The issue was caused by intermediate DerivedMesh being created with
scene's Simplify settings taken into account. This is what happens
when one area makes implicit decisions based on whether passed Scene
pointer is not NULL.
Made it so ignoring simplification serttings is an explicit flag,
which makes it easier to follow what's going on.
2019-01-22 11:57:23 +01:00
Sergey Sharybin
d6d101feca
Fix T59395: Subdivision modifier with quality 1 crashes blender
...
This is actually a workaround for the crash in OpenSubdiv.
Topology refiner will have a crash when special conditions
are met:
- Refiner is configured to use infinitely sharp patches.
- Refinement happens for the level 1 (which we call Quality 1 on
Blender side).
- Mesh has non-quad faces.
The workaround is to force refinement to happen to level 2 (or
quality 2 on Blender side) when those conditions are met.
Later on with the next OpenSubdiv update we can remove this
workaround, since there was work done on OpenSubdiv side to
deal better with such configurations.
The modifier will now be somewhat slower, but this will be
compensated with upcoming topology cache enabled by default.
The workaround is done when initializing settings, so the
comparison of topology refiner settings is happening without
any extra workarounds there.
2019-01-22 11:57:20 +01:00
Sergey Sharybin
fef20d987c
Merge branch 'blender2.7'
2019-01-22 11:57:03 +01:00
Sergey Sharybin
78d4e0fbf2
Fix full compilation after recent passes changes
...
Was caused by c9eef249 .
2019-01-22 11:56:03 +01:00
Campbell Barton
0bbca0e221
3D View: Support edit-mesh clipping (only verts)
...
We'll need to replace built-in shaders to add support for clipping.
2019-01-22 17:23:24 +11:00
Campbell Barton
ee3c177dd3
Fix T60112: Smooth crashes w/ multiple views
2019-01-22 16:52:17 +11:00
Campbell Barton
a93cbb70cd
Fix T60643: BMesh operator enum args fail when unset from Python
...
Error introduced with bmesh operator enum support: 1e6a5eb087
2019-01-22 14:28:17 +11:00
Campbell Barton
88218946da
Cleanup: minor changes to reduce code duplication
...
D4236 by @sobakasu w/ edits.
2019-01-22 13:51:21 +11:00
Campbell Barton
b4aec52007
Cleanup: de-duplicate font loading code
...
Part of D4236 by @sobakasu
2019-01-22 13:11:31 +11:00
Campbell Barton
7f40d553f9
Cleanp: use single global for draw manager
...
Add 'G_draw' for all draw manager globals,
avoids adding extern to each file.
Connection between `ts` and `globals_ubo` wasn't obvious,
now called `G_draw.block` & `G_draw.block_ubo`.
2019-01-22 12:09:27 +11:00
Campbell Barton
c7768bcf4b
Cleanup: use const args
2019-01-22 12:09:12 +11:00
Campbell Barton
46d56872d0
Fix error in last commit
2019-01-22 11:24:59 +11:00
Campbell Barton
14adca06e4
Cleanup: use DRW_shader_create_from_arrays
...
Avoids messy conditional defines and inline lib allocation.
2019-01-22 11:09:17 +11:00
Campbell Barton
7c0f925c59
DRW: Add DRW_shader_create_from_arrays utility
...
While verbose, this is a more flexible way to construct shaders.
Libs & defines can be optionally included for each shader type
which was previously done with inline string creation.
2019-01-22 10:38:28 +11:00
Campbell Barton
8beab3e339
Cleanup: remove redundant '_sh' suffix, add '_shgrp'
2019-01-22 08:31:07 +11:00
Campbell Barton
3d9bee2db1
Cleanup: rename shader containers
...
These only contain shaders, so name Shaders instead of ShaderData.
2019-01-22 08:26:43 +11:00
Antonioya
a712fbda6a
GP: Cleanup previous commit
2019-01-21 18:30:15 +01:00
Antonioya
48149459e4
Fix T60714: Avoid creation of nested objects
...
In grease pencil is not logic add an object inside other object in edit mode. The object must be created only in Object mode.
2019-01-21 18:29:02 +01:00
Antonioya
0af8ad51c0
GP: Fix memory leaks when use cutter with weights
...
There were some issues when copy the weights and other memory leaks.
Also some code cleanup.
2019-01-21 17:39:00 +01:00
William Reynish
2b0fb0d7bf
Fix keymap preferences UI layout issues for modifier keys.
2019-01-21 17:26:35 +01:00
Brecht Van Lommel
a6e6ad0756
Fix T60683, T60662: Cycles render crash in edit mode for certain meshes.
2019-01-21 16:10:00 +01:00
Clément Foucault
14b5668c60
DRW: Fix corner indices order in clipping plane setup
...
Fix T60667: Eevee: reflection plane bug in rendered view.
2019-01-21 15:21:17 +01:00
Campbell Barton
9bc47ed0f6
Fix clipping shaders with some AMD/Intel drivers
...
Caused:
error: unsized array index must be constant
Use hard coded number of clipping planes, copying the 4th to 5 & 6
when only 4 are used.
2019-01-21 23:55:53 +11:00
Jacques Lucke
0c829e8240
Fix T60709: Apply Object Transform does nothing by default
2019-01-21 13:43:16 +01:00
Clément Foucault
ba4de7f1a5
GPUShader: Add GPU_VERTEX/FRAGMENT/GEOMETRY_SHADER defines
...
This makes it possible to have some code specific to each shader inside a
shader library.
2019-01-21 12:54:41 +01:00
Antonioya
f8d040cb70
T60701: GP using cutter tool on stroke with vertex group crashes blender
2019-01-21 11:03:09 +01:00
Brecht Van Lommel
97c7c0abf5
Cleanup: add clarifying comments for recent NUMA fixes.
2019-01-21 10:54:19 +01:00
Bastien Montagne
42ba294235
Fix T55461: [Vertex Group] "Delete all unlocked groups" not working.
2019-01-21 10:36:38 +01:00
Campbell Barton
78d2abd9c1
DRW: Support wire overlay clipping
2019-01-21 19:08:42 +11:00
Campbell Barton
7bc9a563e6
Correct freeing builtin shader from recent commit
2019-01-21 19:07:57 +11:00
Antonioya
7117dfaf67
Fix T60704: Transparency threshold only half visible
2019-01-21 08:59:42 +01:00
Campbell Barton
a06b2b25ad
DRW: pass clipping to geom shader via 'gl_in'
...
Removes need to pass the worldspace location.
2019-01-21 17:50:31 +11:00
Campbell Barton
1ab071bd5c
Cleanup: remove '_sh' suffix
...
Shaders are now stored in their own struct, no need for special names.
Also free as an array.
2019-01-21 17:03:52 +11:00
Campbell Barton
07673a3460
DRW: Support edit-mesh clipping
2019-01-21 16:15:30 +11:00
Campbell Barton
dd3f518626
Cleanup: rename GPU function to set buffer length
2019-01-21 11:28:41 +11:00
Campbell Barton
ff10ba8c26
Cleanup: rename terms count/num to len
2019-01-21 11:24:19 +11:00
Campbell Barton
dbe960fdee
Cleanup: replace 'ct' w/ 'len'
2019-01-21 11:22:27 +11:00
Campbell Barton
923b366549
DRW: set 4 clipping planes for box-clip
2019-01-21 11:12:26 +11:00
Campbell Barton
c53ebfa9e9
3D View: add back clipping border operator
2019-01-21 11:05:15 +11:00
Campbell Barton
7467049055
3D View: add back initial clipping support
...
Use clipping for workbench solid mode drawing.
Other modes & shading support still needs to be added.
2019-01-21 10:43:01 +11:00
Campbell Barton
0d8d26696f
Cleanup: trailing space
2019-01-21 10:41:39 +11:00
Campbell Barton
49208a3419
Cleanup: shadow warning, style
2019-01-21 10:05:58 +11:00
Antonioya
eff4b68a6f
Fix T60678: GP, smoothing a stroke's weights multiple times will lead to unweightable points
2019-01-20 20:38:00 +01:00
Antonioya
6e443b3210
Fix T60677: GP vertex groups get messed up, when deleting a group
2019-01-20 20:31:11 +01:00
Antonioya
6e57534eaa
Fix T60671: GP weight paint crash when smoothing weights
2019-01-20 19:37:13 +01:00
Antonioya
69240a66e0
GP: Fix mirror modifier with parent object
...
Still problems when local rotation.
Some cleanup done.
2019-01-20 19:20:09 +01:00
Bastien Montagne
482c4d099a
Cleanup: remove all BLI_utiledefines' ugly vectorial macros.
...
Not only were those often making doublons with already existing
BLI_math's stuff, but they were also used to hide implicit type
conversions...
As usual this adds some more exotic inlined vector functions (one of
the rare cases where I really miss C++ and its templates... ;) ).
2019-01-20 16:27:06 +01:00