Clément Foucault
01244df007
DRW: Refactor: Make use of the new Gawain long attrib support.
2018-02-14 18:59:42 +01:00
Clément Foucault
df86e9cab5
GWN: Extend support for multiple of 4 components in batches.
2018-02-14 18:59:42 +01:00
Clément Foucault
27a7174546
GWN: Fix style and line of code that does nothing!
2018-02-14 18:59:41 +01:00
Clément Foucault
a5afe13e1c
GWN: Add support for 4x4 Matrices and instancing attributes.
...
Only support float matrices specifically for code simplicity.
2018-02-14 18:59:41 +01:00
Brecht Van Lommel
3102bf2889
Merge branch 'master' into blender2.8
2018-02-14 15:16:50 +01:00
Brecht Van Lommel
f6107af4cf
Cycles: change Index output of Hair and Particle Info to Random, in 0..1 range.
...
These are used for randomization, so it's convenient if the index is already
hashed and consistent with the Object Info node.
2018-02-14 14:55:46 +01:00
Brecht Van Lommel
618bc6c679
GPU: use alpha blend that works for drawing to transparent buffer.
...
It's unlikely to ever be intentional to square the source alpha, as happens
with glBlendFunc, so this changes the blending throughout the code.
2018-02-14 14:00:57 +01:00
Brecht Van Lommel
7028a11db9
GPU: don't use multisample for entire window, only for offscreen 3D viewport.
...
Now that the new 3D viewport draws to a multisample offscreen buffer, there is
no good reason anymore to create an entire multisample window and pay the
performance/memory cost for other regions that don't need it.
GL_MULTISAMPLE now only gets enabled for offscreen buffers, so we don't need
to check for it throughout the UI code anymore.
Differential Revision: https://developer.blender.org/D3062
2018-02-14 14:00:48 +01:00
Brecht Van Lommel
8049ad21b0
Fix incorrect RNA path to view_render settings.
2018-02-14 13:31:37 +01:00
Brecht Van Lommel
3851033a06
Code cleanup: simplify subwindow code.
2018-02-14 12:31:13 +01:00
Sergey Sharybin
c8e661706f
Particles: Avoid multiple function declarations in multiple places
...
This makes it really hard to spot errors when function signature changes.
2018-02-14 11:52:58 +01:00
Sergey Sharybin
8003059646
Particles: Cleanup, remove trailign whitespace
2018-02-14 11:46:33 +01:00
Sergey Sharybin
1c34825b4f
Hair child: Use clamp function to clamp curve evaluation
...
Avoids redundant calls to the curve evaluation.
2018-02-14 11:42:09 +01:00
Sergey Sharybin
c09e4ae08a
Math utils: Add clamping functions
2018-02-14 11:21:27 +01:00
Sergey Sharybin
a966852362
CMake: Expose Cycles devices support as CMake option
...
Handy to disable GPU based devices when it's needed to run Valgrind.
2018-02-14 10:32:32 +01:00
Sergey Sharybin
c341dd0585
CMake: Fix cimpilation error when CUDA dynload is disabled but toolkit is not installed
2018-02-14 10:20:26 +01:00
Campbell Barton
88bd994a37
Merge branch 'master' into blender2.8
2018-02-14 16:04:07 +11:00
Campbell Barton
b48815a9b7
Cleanup: use prefix for tests
...
Allows for running all `bmesh_*` or `object_*` tests.
2018-02-14 16:02:21 +11:00
Campbell Barton
769c9a2363
Object Mode: remove Scene.obedit
...
This means we can support having the same scene in different windows
with different edit-objects.
2018-02-14 08:49:20 +11:00
Brecht Van Lommel
6e040b045a
GPU: add offscreen buffer drawing utility functions.
2018-02-13 20:02:31 +01:00
Brecht Van Lommel
e9b1163162
Code cleanup: stop using rectangle textures in window draw, simplify code.
2018-02-13 20:02:31 +01:00
Brecht Van Lommel
afb213f876
Code cleanup: fix incorrect reading of GL scissor coordinates.
...
These are often the same as the viewport, but not always.
2018-02-13 20:02:31 +01:00
Brecht Van Lommel
96a2807e73
Code cleanup: remove unneeded gla* 2D drawing functions.
2018-02-13 20:02:31 +01:00
Brecht Van Lommel
ff2d1edcd4
Fix blenderplayer build.
2018-02-13 20:02:31 +01:00
Campbell Barton
b330804ff3
Merge branch 'master' into blender2.8
2018-02-14 01:06:41 +11:00
Campbell Barton
9fb1f9c5cd
Add ED_object_editmode_exit_ex
...
Allow exiting editmode from non-active scene.
2018-02-14 00:39:39 +11:00
Sergey Sharybin
37f65e9dc4
Cycles: Implement index output for hair node
...
This is like the only way to add variety to hair which is created
using simple children. Used here for the hair.
Maybe not ideal, but the time will show.
2018-02-13 14:20:47 +01:00
Mai Lavelle
9e2ec6c86a
Fix T54064: Can't create new Cycles materials
...
Was caused by object mode removal
2018-02-13 07:03:12 -05:00
Campbell Barton
cd517c002f
Object Mode: remove Scene.obedit for RNA
2018-02-13 21:06:51 +11:00
Campbell Barton
8234f24838
Object Mode: Loop over objects for ED_editors_exit
...
We could loop over active objects but this ensures don't miss any
and avoids complicated context checks.
2018-02-13 21:00:26 +11:00
Campbell Barton
c8597a465f
Object Mode: remove Scene.obedit
...
Add ED_screen_window_find, BKE_workspace_edit_object
2018-02-13 20:55:12 +11:00
Campbell Barton
754d3a2fe6
Object Mode: remove Scene.obedit for 3D View
2018-02-13 19:44:21 +11:00
Campbell Barton
d8992192e5
Object Mode: pass edit-object to outliner drawing
...
Also add 'OBEDIT_FROM_EVAL_CTX' macro.
2018-02-13 18:45:35 +11:00
Campbell Barton
2c6d079a90
Object Mode: pass edit-object to UV API
2018-02-13 18:29:49 +11:00
Campbell Barton
dacc6d4b02
Object Mode: remove Scene.obedit in draw manager
...
Part of larger change to remove this variable entirely.
2018-02-13 18:15:47 +11:00
Ines Almeida
d640ce40aa
(Nodes) Display image name if any in the Cycles Image and Environment Texture node title
2018-02-13 00:58:26 +01:00
Brecht Van Lommel
fc99eed5be
Fix random walk SSS issues with different base and subsurface color.
...
Burley SSS uses a bit of strange thing where the albedo and closure weight are
different, which makes the subsurface color act a bit like a subsurface radius
indirectly by the way the Burley SSS profile works.
This can't work for random walk SSS though, and it's not clear to me that this
is actually a good idea since it's really the subsurface radius that is supposed
to control this. For now I'll leave Burley SSS working the same to not break
backwards compatibility.
2018-02-12 21:08:59 +01:00
Brecht Van Lommel
b37dff9239
Fix part of T53080: don't use current scene world for icon previews.
...
This can be very slow if it contains a big texture, and it's not
necessarily setup in a useful way anyway, and materials can be used
in multiple scenes.
2018-02-12 20:39:40 +01:00
Sergey Sharybin
37ce77ba06
Buildbot: Remove usage of deprecated chroot
2018-02-12 17:56:19 +01:00
Howard Trickey
ce8b5bd90d
Add boolean regression test.
2018-02-12 07:23:50 -05:00
Campbell Barton
147c24aeeb
Fix T54032: Adding torus test fails
...
rna_LayerObjects_active_object_update used wrong viewlayer.
Regression in 345c6298e9
2018-02-12 19:39:52 +11:00
Campbell Barton
bbb2fa14c8
Merge branch 'master' into blender2.8
2018-02-12 17:57:53 +11:00
Campbell Barton
657396be08
Error in last commit, disable cycles when not enabled
...
Would only disable when loading old preferences.
2018-02-12 17:56:14 +11:00
Campbell Barton
2c3d4f7e65
Merge branch 'master' into blender2.8
2018-02-12 17:39:58 +11:00
Campbell Barton
53431a560e
Disable cycles when WITH_CYCLES=OFF
2018-02-12 17:37:39 +11:00
Campbell Barton
fc97e120f6
BKE_addon: new/free/ensure functions
2018-02-12 17:24:18 +11:00
Germano
0bf615fc24
GHOST: Optimize and simplify the creation of a GHOST_Context on Windows
...
Instead of cloning the window to create dummyHWNDs and dummyHDCs to avoid calling the SetPixelFormat more than once in the same window, use the original window and HDC and do not call the SetPixelFormat again.
In addition to avoiding a lot of unnecessary calls, it simplifies the code and makes it match the others OS
2018-02-10 00:32:13 -02:00
Brecht Van Lommel
832f7a6648
Merge branch 'master' into blender2.8
2018-02-09 20:36:59 +01:00
Dalai Felinto
5216eaec1d
Eevee: Film filter default to 1.5 instead of 1.0
...
Cycles already uses 1.5 as default. BI original 1.0 filter doesn't look good for
Eevee. The ideal scenario would be for both Cycles AND Eevee to use the same DNA
setting.
But for now it is nice to at least have Eevee renders to look better by default.
Note: This handles doversion for 2.7x files only. Files previously created in
2.8 need to be manually corrected.
2018-02-09 17:16:36 -02:00
Brecht Van Lommel
a6968e87f1
Cycles: add random walk subsurface scattering to Principled BSDF.
...
Differential Revision: https://developer.blender.org/D3054
2018-02-09 19:58:42 +01:00