4a5ee1a5a2
Cycles: add Displacement node.
...
This converts object space height to world space displacement, to be
linked to the new vector displacement material output.
Differential Revision: https://developer.blender.org/D3015
2018-01-23 11:12:26 +01:00
2838cf0dfe
Fix T53854: branched path tracing correlation bug with transparency in split kernel.
2018-01-23 11:11:48 +01:00
Campbell Barton
9466f8f531
Cleanup: use doxygen groups for view3d_edit.c
2018-01-23 19:48:49 +11:00
Campbell Barton
f6dc7a7cf3
Cleanup: code comment for view3d_viewmatrix_set
2018-01-23 17:36:51 +11:00
Campbell Barton
41e930ac66
Cleanup: CMake whitespace
2018-01-23 17:25:09 +11:00
Germano
85ca39ec4b
Fix screen split refresh issues
...
`Ctrl` (enable snapping) ans `TAB` (Switching direction) didn't refresh.
2018-01-22 23:07:36 -02:00
Campbell Barton
1443235aa4
Cleanup: sync w/ blender2.8 branch
...
Also make some args const
2018-01-23 12:14:26 +11:00
Ray Molenkamp
bf7e406766
Cycles: Fix optimal BVH selection.
2018-01-22 14:52:09 -07:00
Sergey Sharybin
2f79d1c058
Cycles: Replace use_qbvh boolean flag with an enum-based property
...
This was we can introduce other types of BVH, for example, wider ones, without
causing too much mess around boolean flags.
Thoughs:
- Ideally device info should probably return bitflag of what BVH types it
supports.
It is possible to implement based on simple logic in device/ and mesh.cpp,
rest of the changes will stay the same.
- Not happy with workarounds in util_debug and duplicated enum in kernel.
Maybe enbum should be stores in kernel, but then it's kind of weird to include
kernel types from utils. Soudns some cyclkic dependency.
Reviewers: brecht, maxim_d33
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D3011
2018-01-22 17:19:20 +01:00
Dalai Felinto
0f69026b1c
Fix windows building (log10)
...
Error: math_base_inline.c(402): error C2668: 'log10' : ambiguous call to
overloaded function
2018-01-22 11:37:19 -02:00
8a2d09eb9f
Fix T53854: branched path tracing correlation bug with transparency.
...
This was broken in d750d18.
2018-01-22 14:02:58 +01:00
Sergey Sharybin
b06bd20a6b
Cycles: Cleanup, remove unused argument
2018-01-22 10:59:14 +01:00
Campbell Barton
fb4582134a
Fix T53850: Lock to Cursor breaks 3D manipulators
2018-01-22 20:14:12 +11:00
Campbell Barton
c723e91ee1
WM: add mouse-move after smooth-view
...
When hot-spots moved under the pointer,
clicking wouldn't activate the correct item.
2018-01-22 14:09:17 +11:00
Campbell Barton
56fc812d1e
Fix manual lookups (data is now lowercase)
2018-01-22 10:00:40 +11:00
Campbell Barton
d9c962a367
Fix T53843: Error opening online manual
2018-01-22 10:00:40 +11:00
Campbell Barton
a841e65b85
Cleanup: unused var
2018-01-22 10:00:40 +11:00
Germano
8d671f6f65
Update description of the screen_draw functions
2018-01-21 18:22:39 -02:00
Germano
46267fe7bf
WM: Fix snapping on split area without preview
...
In addition to removing unnecessary variables and `tag_redraw` whenever the factor changes;
2018-01-21 18:18:38 -02:00
cc64872b88
Fix T49159: missing Cycles tangents for adaptive subdivision.
2018-01-21 15:43:59 +01:00
Campbell Barton
e767d21b74
Cleanup: BLI_kdopbvh avoid negative array access
...
It's harder to reason about array access with negative indices.
2018-01-21 20:17:29 +11:00
Campbell Barton
a7dc5e12ac
Cleanup: style
2018-01-21 11:41:52 +11:00
e53447c137
Fix old files with changed node socket type not loading correctly.
...
This would lead to sock.default_value pointing to the wrong data type,
possibly causing crashes. Unfortunately, this bug will still exist for
older Blender versions that try to load newer files, which makes
changing the type of a node socket problematic.
2018-01-20 22:42:59 +01:00
Campbell Barton
dd35048602
Cleanup: doxy groups for screen_ops.c
2018-01-21 01:41:58 +11:00
Campbell Barton
949e56dff1
Fix screen split preview refresh issues
...
Switching direction didn't refresh, also cursors were flipped.
2018-01-21 00:41:48 +11:00
Dalai Felinto
431d5772bb
Fixup for integer digits commit
2018-01-19 17:04:19 -02:00
Dalai Felinto
075def8fbd
Util function to determine number of digits from an integer
2018-01-19 16:54:07 -02:00
Sergey Sharybin
fa91b43e8c
Cycles: Make it more proper check on vectorization flags from DebugFlags
...
Mimics to checks in system_cpu_support() checks.
2018-01-19 15:48:42 +01:00
Dalai Felinto
edf053ff63
Outliner Python UI cleanup: remove KEYMAPS
...
This was removed since 2013 (ef765b360675). It should have been removed back
then from the UI file too.
2018-01-19 12:45:57 -02:00
Sergey Sharybin
ccec1e7667
Cycles: Cleanup, stop using debug flags in system utilities
...
Debug flags are to be controlling render behavior, nothing to do with low level
system utilities.
it was simple to hack, but logically is wrong. Lets do things where they are
supposed to be done!
2018-01-19 15:22:32 +01:00
Sergey Sharybin
54632dc830
Cycles: Remove util_debug include from kernel code
...
Not sure why it was in there, all the debug flags stuff is to be handled outside
of kernel.
2018-01-19 15:21:34 +01:00
Sergey Sharybin
8e1dd7ed81
Cycles: Remove unneeded include statements
...
Also try to move them from headers to implementation files as much as possible.
2018-01-19 15:19:45 +01:00
0fe41009f0
Fix T53830: Cycles OpenCL debug assert on macOS,
...
This was probably harmless besides some unnecessary memory usage due to
aligning allocations too much.
2018-01-19 11:35:07 +01:00
Campbell Barton
889321e22b
Cleanup: reaname LINKLIST_FOREACH -> LISTBASE
...
LinkList's are a different API, no need to confuse things.
2018-01-19 21:39:18 +11:00
Campbell Barton
5a61c1de82
Fix T53786: Proportional size from redo ignored
...
Changing PET size while transforming stores the size in the
tool settings, but changing in the redo panel didn't.
2018-01-19 21:09:16 +11:00
Campbell Barton
0cddc7e300
WM: operator flag to check repeat/redo execution
2018-01-19 21:07:43 +11:00
Campbell Barton
53e062da94
Cleanup: sync w/ blender2.8 branch
...
Split screen_draw.c from screen_edit.c (avoid conflicts syncing).
2018-01-19 17:57:37 +11:00
mano-wii
ebf01d44ee
WM: window draw callbacks and split preview snap
...
This moves window overlay from hard coded flags into drawing callbacks.
It also supports snapping (holding Ctrl).
2018-01-19 17:15:45 +11:00
Campbell Barton
7a24e0d175
Cleanup: typos
2018-01-19 15:34:54 +11:00
Mai Lavelle
abb3a86e10
Fix T53833: Particle Info node and Displacement Crash
...
The displacement shared was running before particle data was copied to the
device causing bad memory access when the particle info node was used. Fix
is simply to move particle update before mesh update so the data is
available to displacement shaders.
(Altho this fixes the crash the particle info node is still mostly useless
with displacement for now...)
2018-01-18 22:40:48 -05:00
Campbell Barton
368414efac
Fix T53823: Particle weight brush crash
...
Entering particle edit mode w/ the weight brush enabled crashed
on non-hair particle systems.
2018-01-19 12:25:09 +11:00
Campbell Barton
2b9fb723ed
Fix T53832: Particle weight paint crash
...
Drawing hair weights read before the hair array start.
This code could be improved since it currently copy-pastes,
from do_particle_interpolation, but this would need larger changes.
For now just correct existing logic.
2018-01-19 12:14:53 +11:00
Campbell Barton
42a562496b
Fix memory leak in recent curve refactor
...
5b25605761fb7
2018-01-18 20:54:59 +11:00
Sybren A. Stüvel
7b3e441bcf
Improved docstring of mathutils.Matrix.lerp()
2018-01-18 09:58:14 +01:00
Sybren A. Stüvel
9811150952
Improve docstring for mathutils.Matrix.decompose()
2018-01-18 09:38:01 +01:00
Campbell Barton
001789d733
Fix T53808: VSE doesn't show scene strip markers
2018-01-18 14:49:09 +11:00
Campbell Barton
6880a549ba
Fix weight particle brush versioning
2018-01-18 14:02:26 +11:00
Campbell Barton
9b04a47070
Cleanup: label scene flags more clearly
...
Also correct typo in enum name
2018-01-18 13:51:49 +11:00
Campbell Barton
2be8598fe7
Fix T53811: "bmesh.ops.split" crash
2018-01-18 12:36:25 +11:00
mano-wii
7ffe838473
WM: improved area resize snapping
...
Instead of 10px steps, snap to mid-point & adjacent edges.
Not yet implemented for split preview.
2018-01-18 11:33:51 +11:00