mano-wii
208d6f28c8
Merge branch 'master' into blender2.8
2017-09-15 14:19:22 -03:00
mano-wii
14eadf55fd
RNA: expose RegionView3D clip planes
2017-09-15 13:55:52 -03:00
Campbell Barton
4fae536f60
Merge branch 'master' into blender2.8
2017-09-15 22:44:07 +10:00
Clément Foucault
0c5ff0e558
GPUCodegen: Fix for loop overflow.
...
Fix asan error.
2017-09-15 11:42:53 +02:00
Campbell Barton
d120780fed
BMesh: use less involved check for edge rotation
...
Was using function for edge rotation which was doing unnecessary checks
Use the face normal and BLI_polyfill_beautify_quad_rotate_calc directly.
2017-09-15 18:19:04 +10:00
Campbell Barton
c594087488
Polyfill Beautify: option to rotate out of degenerate state
...
Needed for 3D iterative edge-rotation to avoid flipping when projected
from different angles,
but could keep zero area faces in 2D polygons.
2017-09-15 18:14:17 +10:00
Campbell Barton
fdb8e17936
Fix error in recent boolean changes w/ quad split
2017-09-15 18:08:24 +10:00
Sergey Sharybin
028c5592cd
Merge branch 'master' into blender2.8
2017-09-15 12:35:20 +05:00
Sergey Sharybin
8b3ad25862
Transform: Enable recursion dependency check for new depsgraph
2017-09-15 12:25:57 +05:00
Sergey Sharybin
95a8e73d40
Fix copy-paste error in recent particles fix
...
Was intersecting same triangle twice.
2017-09-15 11:35:24 +05:00
Campbell Barton
2aa2bec43a
Fix T52442: bl_app_templates_system not working
...
Portable builds LOCAL files need to be
treated as system instead of using as a fallback to USER templates.
2017-09-15 05:57:37 +10:00
Campbell Barton
909da553e3
Fix bpy.utils.resource_path('SYSTEM') output
...
Would return the test path for developer builds:
{blender-dirname/release}
Now return an empty string when no path is found.
2017-09-15 05:47:23 +10:00
Sergey Sharybin
c75bd25cd8
Fix T52732: Particle system volume grid particles out of volume
...
Use more watertight and robust intersection test.
It uses now ray to triangle intersection, but it's all fine because segment was
covering the whole bounding box anyway.
2017-09-14 19:50:02 +05:00
Bastien Montagne
3c1c3b64c5
Fix T52729: Decimals not showing over 100m or 100 feet
...
Use same 5 digits precision as we already use for e.g. Object's
location, for Object's dimensions too.
To be backported to 2.79a, should we do it.
2017-09-14 16:35:28 +02:00
Sergey Sharybin
a22590a62c
Fix T52537: Dyntopo "detail flood fill" doesn't work in some cases
...
Mainly when object origin is not at the geometry bounding box center.
Seems to be straightforward to fix, hopefully it doesn't break some obscure case
where this was a desired behavior.
2017-09-14 18:56:16 +05:00
Campbell Barton
fc7ac0bc49
Correct error in last commit
2017-09-14 23:04:01 +10:00
Campbell Barton
8c21003248
Fix T52748: Select shortest face path fails
2017-09-14 23:01:07 +10:00
Sergey Sharybin
7aafa32c09
Fix T51416: Blender Crashes while moving Sliders
...
The issue here was that removing datablock from main database will poke editors
update, which includes buttons context to free users of texture. Since Cycles
will free datablocks from job thread, it might crash Blender since main thread
might be in the middle of drawing.
Solved by exposing extra arguments to bpy.data.foo.remove() which indicates
whether we want to perform ID user count and interface updates. While scripts
shouldn't be using those normally, this is the only way to allow Cycles to skip
interface update when removing datablock.
Reviewers: mont29
Reviewed By: mont29
Differential Revision: https://developer.blender.org/D2840
2017-09-14 17:03:40 +05:00
Sergey Sharybin
ff79406404
Fix T52653: Render output of linked scenes conflicts with other scenes with the same name
...
The issue was caused by render result identifier only consist of scene name,
which could indeed cause conflicts.
On the one hand, there are quite some areas in Blender where we need identifier
to be unique to properly address things. Usually this is required for sub-data
of IDs, like bones. On another hand, it's not that hard to support this
particular case and avoid possible frustration.
The idea is, we add library name to render identifier for linked scenes. We use
library name and not pointer so we preserve render results through undo stack.
Reviewers: campbellbarton, mont29, brecht
Reviewed By: mont29
Differential Revision: https://developer.blender.org/D2836
2017-09-14 16:50:19 +05:00
Sergey Sharybin
4bd014e951
Depsgraph: Fix crash in masking, related on T52749
2017-09-14 16:23:16 +05:00
Sergey Sharybin
75f36266df
Merge branch 'master' into blender2.8
2017-09-14 16:17:22 +05:00
Sergey Sharybin
09c6c6c486
Fix T52749: New Depsgraph - Render View Mask is not initialized correctly
2017-09-14 16:12:01 +05:00
Sergey Sharybin
3573f49bfd
Masks: Split layer evaluation into separate function
...
This way we can easily re-use bits of code for new dependency graph.
Currently should be no functional changes.
2017-09-14 16:09:06 +05:00
Sergey Sharybin
8140b51aa4
Fix T52739: Crash loading corrupted video files
...
Affects both "normal" open as a video file and thumbnail generation.
2017-09-14 14:56:25 +05:00
Bastien Montagne
c57636f060
Fix failure in our UI code that could allow search button without search callbacks, leading to crash.
...
Related to (exposed by) T52735, fixes the reported crash but not the
underlying issue.
To be backported to 2.79a should we do one.
2017-09-14 10:58:47 +02:00
Campbell Barton
d827186c17
Fix T52723: Reset UV layers failed
2017-09-14 17:46:03 +10:00
Sergey Sharybin
f7163a7d0a
Fix T52741: Follow track with depth object crashes Blender with new depsgraph
2017-09-14 12:31:54 +05:00
Campbell Barton
892d304ded
Fix T52291: Boolean fails w/ co-linear edged ngons
...
This means boolean tessellation wont match viewport tessellation
however it's needed to avoid zero area triangles causing problems.
2017-09-14 16:08:03 +10:00
Clément Foucault
5ae63f03d9
DRW: Fix texture binding logic.
2017-09-14 01:03:19 +02:00
Clément Foucault
3b080c3f66
GPUCodegen: Add New GPU_SOURCE_STRUCT to be used for Closure Sockets
...
This way we dont rely on the static array of chars that was causing T52385.
That fixes T52385.
2017-09-14 01:03:19 +02:00
Campbell Barton
a01fbc6689
Manipulator: use box style for render border
2017-09-14 05:05:28 +10:00
Campbell Barton
c9be499c31
Manipulator: cage2d expand hotspot
...
With new style drawing hotspot should be in the middle of the border,
not inside it.
2017-09-14 04:38:48 +10:00
Campbell Barton
c1ff05e66f
Manipulator: disable hover for camera border
2017-09-14 04:10:33 +10:00
Campbell Barton
3bf36fa33b
Manipulator: alternate cage2d draw style
...
Doesn't rely on hovering, more consistent with 2D drawing tools.
2017-09-14 03:54:32 +10:00
Campbell Barton
55fb6e7096
GPU_immediate_util: Add x,y radius to circle draw
...
A version of circle drawing for non 1:1 aspects
2017-09-14 03:54:32 +10:00
Clément Foucault
d5478e20cc
Eevee: Fix AO disappearing when updating Probe Grids.
2017-09-13 19:40:53 +02:00
Clément Foucault
2d261685a9
Eevee: Fix T52357 : SSRefraction broken after adding probe
...
I forgot the reset the toggle after rendering the probes...
2017-09-13 19:31:48 +02:00
Clément Foucault
1fca11d5cb
DRW: Fix incorrect Ubo Bind
2017-09-13 17:44:36 +02:00
Clément Foucault
4088c9fa68
Eevee: Get rid of glitchy black SSR.
...
Add sanitizer. I wanted to stay away from this because I think we should fix what causes NaNs in the first place. But there can be too much different factor causing NaNs and it can be because of user inputs.
2017-09-13 17:44:36 +02:00
Campbell Barton
6d359e4498
Cleanup: use explicit 2d suffix for imm utils
...
Avoid ambiguity between 2d/3d (which were already named).
2017-09-14 01:24:50 +10:00
Campbell Barton
2a01fb61f8
Cleanup: use safe free macro & comments
2017-09-14 01:24:47 +10:00
Clément Foucault
e9d8b780ae
DRW: Fix leak (2nd attempt) cause by texture "state" tracking
...
This should get rid of the leak once for all.
2017-09-13 16:55:58 +02:00
Clément Foucault
2b2277ecbc
DRW: Fix memleak in release mode.
2017-09-13 15:42:48 +02:00
Campbell Barton
37d8d4787c
Merge branch 'master' into blender2.8
2017-09-13 23:44:13 +10:00
Sergey Sharybin
6f633dec5d
Fix T52299: X resolution of 4 causes nodes to collapse
...
Was caused by numeric overflow when calculating preview dimensions.
Now we try to avoid really insance preview resolutions by fitting
aspect into square.
2017-09-13 18:31:36 +05:00
Clément Foucault
9abacf38fd
Eevee: SSR: Making ray count a define rather than an uniform.
...
The branching introduced by the uniform caused problems on mesa + AMD in the resolve stage.
This patch create one shader per sample count without branching.
This improves performance of a single ray per pixel case (3.0ms against 3.6ms in my testing)
2017-09-13 15:29:38 +02:00
Campbell Barton
43858c4197
Cleanup: avoid right-shifted args in RNA register
2017-09-13 21:52:57 +10:00
Campbell Barton
29a7ad8b1a
Node UI: scale cross by pixelsize
...
Draws a little smaller to fit with 2.8x manipulator.
2017-09-13 21:48:51 +10:00
Campbell Barton
71c1bd1bd8
Manipulator: cage2d option to grab w/ a center handle
2017-09-13 21:42:13 +10:00
Sergey Sharybin
04800ed434
Fix T52113: Compositor doesnt mix unrendered render layers well
...
Compositor was always defaulting to all-zero s output for missing passes.
This was broken in 4cf7fc3 .
2017-09-13 15:46:19 +05:00