Clément Foucault
89e9f6ea79
DRW: Better stencil support.
...
A stencil mask is now assigned to each shading group and the stencil test is defined like the depth test via the DRW_STATE_* defines.
2017-11-13 23:33:06 +01:00
Clément Foucault
93936b8643
GPUTexture: Add for stencil to default depth buffers.
...
Theses will be used by eevee SSS.
TODO: only allocate stencil if needed.
2017-11-13 23:25:46 +01:00
Clément Foucault
ab013224ad
GPUMaterial : Add sss_data to Closure struct.
2017-11-13 22:09:12 +01:00
Dalai Felinto
f4beb64020
Fix quick smoke getting view_render from the wrong place
2017-11-13 14:15:36 -02:00
Dalai Felinto
1cb6cea71c
Merge remote-tracking branch 'origin/master' into blender2.8
2017-11-13 11:48:48 -02:00
Sergey Sharybin
8a03e4d409
Depsgraph: Fix relations for metaballs
...
Initially spotted and investigated by Dalai and Germano.
2017-11-13 14:43:08 +01:00
Sergey Sharybin
d1a761c4d4
Cycles: Fix compilation error of standalone application
2017-11-13 10:49:05 +01:00
Sergey Sharybin
42dff6cc2e
Cycles: Fix compilation error with OIIO compiled against system PugiXML
2017-11-13 10:42:29 +01:00
Brecht Van Lommel
e568c1a975
Fix T53289: CUDA missing textures not showing pink, after recent changes.
2017-11-12 20:45:47 +01:00
Brecht Van Lommel
ebcb880375
Fix T53273: render bake settings properties not showing correct Python path.
2017-11-12 20:30:28 +01:00
Campbell Barton
5b3c15e336
Fix T53294: bpy.ops.image.open crash
2017-11-12 16:05:28 +11:00
Campbell Barton
aae8e21100
BMesh Py API: Expose color alpha
2017-11-12 15:48:24 +11:00
Clément Foucault
f30a2a7862
GPUFramebuffer: Add possibility to blit stencil buffer.
2017-11-11 16:23:55 +01:00
Mai Lavelle
e389ae9dca
Cycles: Set error if a split kernel fails to load
...
To help catch cases where adding a new kernel is missed for one of the
device implementations.
2017-11-11 01:01:14 -05:00
Campbell Barton
0260fad9ba
Manipulator: ruler tool
...
Add the 3D view ruler as a tool,
the modal operator remains for now
however it may be removed if we use the tool-system for 2.8.
Note that this does copy code from the operator,
its different enough not to attempt to de-duplicate.
2017-11-11 03:27:21 +11:00
Campbell Barton
63830cd6a9
Manipulator: public highlight utility function
...
Also utility to find group from a manipulator map.
2017-11-11 03:19:51 +11:00
Sergey Sharybin
1bd8a82960
Fix assert failure when trying to draw empty string
2017-11-10 16:29:57 +01:00
Germano
8f5e7c3fa9
Merge branch 'master' into blender2.8
2017-11-10 13:02:49 -02:00
Dalai Felinto
58a3057099
Layers Unittest: Hidden flag to quckly update diffs
...
This is not the commit you are looking for ...
This is not to be used lightly. But sometimes we change the name of the collections,
the initial value they have, ... and this helps to quickly update the tests.
2017-11-10 13:01:05 -02:00
Germano
d95eabf0a9
mball_tessellate: Simplify face creation
...
Faces that have the last two indices equal are considered triangles, and not those that the last index is 0
Improvement of 7% in performance of the `polygonize` function
2017-11-10 12:58:34 -02:00
Dalai Felinto
1122a401b0
Unittest: Layers - include is_disabled for LayerCollection
...
And remove is_folder since it is not being used.
2017-11-10 12:39:43 -02:00
Dalai Felinto
34c99ee85b
Fixup for doversion/layers: disable collections for scene layers
2017-11-10 11:27:30 -02:00
Dalai Felinto
2ec01cc7c5
Layers doversion: Handle hide and hide_render objects
...
We now created nested collections for the original Collection 1, 2 ...
collections for the "hide" and "hide_render" objects.
Also, remove logic for rename single-collection files, it's now kept as
it was originally (Collection 1, Collection 5, ...).
Thanks Sergey Sharybin and Pablo Vazquez for patch review and suggestions.
2017-11-10 10:37:23 -02:00
Sergey Sharybin
7922b62519
Workaround crash rendering font objects
...
Needs a proper scene layer and dependency graph, which we do not have
yet during render pipeline.
2017-11-10 11:09:10 +01:00
Sergey Sharybin
1737887938
Merge branch 'master' into blender2.8
2017-11-10 10:36:46 +01:00
Bastien Montagne
7a6ad2901c
Merge branch 'master' into blender2.8
2017-11-10 10:13:19 +01:00
Sergey Sharybin
db7a78a2be
Cycles: Fix compilation error with latest OIIO
...
There was some changes about namespaces, which causes ambiguities.
Replaces using namespace with an explicit symbols we need. Is good idea to NOT
pull in the whole namespace anyway!
2017-11-10 10:04:33 +01:00
Brecht Van Lommel
a466d7ae24
Cycles: better distance sampling for chromatic volume extinction.
...
Previously we picked one of the RGB channels with equal probability, but this
works poorly in a dense volume after many bounces. Now we take into account
the throughput and single scattering albedo.
This makes it a little more practical to do brute force SSS with volumes, but
is still very inefficient because we do direct light sampling at every volume
bounce even when inside an opaque mesh. In theory there could be a light inside
the mesh so we can't automatically disable direct lighting.
2017-11-10 01:37:10 +01:00
Brecht Van Lommel
21a535840d
Fix T53270: crash with multiscatter GGX after recent refactoring.
...
In fact this was an existing issue when exceeding the number of available
closure, but it's more common now that we set the number to 0 for shadows
and emission
2017-11-09 20:28:00 +01:00
Brecht Van Lommel
1ffa01b6f8
Fix (harmless) valgrind warning.
2017-11-09 20:28:00 +01:00
Brecht Van Lommel
bd4bea3e98
Cycles: avoid reallocating tile denoising memory many times during render.
2017-11-09 20:28:00 +01:00
Dalai Felinto
7defb27f08
Farewell BaseLegacy
...
Finally, bases are all using the latest, newest SceneLayer bases.
2017-11-09 15:45:19 -02:00
Dalai Felinto
06a7db85bc
BGE cleanup: remove Base from KX_Light.h
2017-11-09 15:45:19 -02:00
Sergey Sharybin
3dde21f97e
Depsgraph: Fix broken copy-on-write draw after ownership changes
...
Need to build layer collections callbacks using proper CoW pointer.
2017-11-09 16:42:54 +01:00
Dalai Felinto
cec7f1215a
Rename Scene macros back to their original _NEW less names
2017-11-09 13:35:46 -02:00
Dalai Felinto
c35f1d05ea
Farewell Scene->basact
2017-11-09 13:23:41 -02:00
Sergey Sharybin
09d26cab0b
Cleanup: Use full name for scene_layer in alembic
2017-11-09 15:45:21 +01:00
Sergey Sharybin
a956e7399a
Cleanup: Use full name for scene_layer in blenloader
2017-11-09 15:45:21 +01:00
Sergey Sharybin
a6951df836
Cleanup: Use full name for scene_layer in depsgraph
2017-11-09 15:45:21 +01:00
Sergey Sharybin
240b8b9679
Cleanup: Use full name for scene_layer in draw
2017-11-09 15:45:21 +01:00
Sergey Sharybin
acd811278e
Cleanup: Use full name for scene_layer in gpu
2017-11-09 15:45:21 +01:00
Sergey Sharybin
2466afd089
Cleanup: Use full name for scene_layer in makesrna
2017-11-09 15:45:21 +01:00
Sergey Sharybin
859417c657
Cleanup: Use full name for scene_layer in nodes
2017-11-09 15:45:21 +01:00
Sergey Sharybin
f7398bc0f3
Cleanup: Use full name for scene_layer in python
2017-11-09 15:45:21 +01:00
Sergey Sharybin
e5081a0dae
Cleanup: Use full name for scene_layer in render
2017-11-09 15:45:21 +01:00
Sergey Sharybin
bd6ab7dd6c
Cleanup: Use full name for scene_layer in windowmanager
2017-11-09 15:45:21 +01:00
Julian Eisel
98fc7f6b53
Remove unused screen-name storage in window
...
Checked in really old revisions, seems like this was never used. So
doesn't matter for compatibility either (tested opening files saved with
this in 2.49).
2017-11-09 15:11:57 +01:00
Julian Eisel
fadbb2fde8
Fix crash using pre 2.5 file as startup.blend
2017-11-09 15:11:57 +01:00
Julian Eisel
5839c73a54
Cleanup: Refactor window matching after file read for readability
...
Code should hopefully be much clearer now.
Also removing code that's been commented out for a while, and was never
executed in master.
2017-11-09 15:11:57 +01:00
Stefan Werner
df886b178c
Moved alignment attributes from my last commit to BLI_compiler_attrs.h for future use.
2017-11-09 14:59:31 +01:00