Campbell Barton
2fa2814c82
Fix sculpt drawing with Blender viewport
...
Would draw without any lighting
2017-05-16 16:38:50 +10:00
Campbell Barton
cbe97bc50f
Fix face-dot's not drawing
...
regression in d12d8956
2017-05-16 14:57:28 +10:00
Campbell Barton
a8aebc8dd1
Fix memory leak with mesh cache (w/ select invalidate)
2017-05-16 14:55:29 +10:00
Campbell Barton
d05d73ae75
Fix memory leak with mesh cache (missed last commit)
2017-05-16 13:06:23 +10:00
Campbell Barton
57660aac74
Merge branch 'master' into blender2.8
2017-05-16 13:01:26 +10:00
Campbell Barton
d508b69e44
Cleanup: gcc7.1 warnings
2017-05-16 12:46:52 +10:00
Campbell Barton
5a90542d3d
Fix memory leak with mesh cache
2017-05-16 11:45:23 +10:00
Aaron Carlisle
12651aba03
Fix hair_step is a short
2017-05-15 17:28:01 -04:00
Aaron Carlisle
15e8fbd549
Fix compile error on gcc after last commit
...
error: static assertion failed: "invalid limits"
2017-05-15 16:43:33 -04:00
Aaron Carlisle
4621583612
Fix T51297: Use A Higher Hair Segment Limit
...
Normally, segments up to 50 can be quite enough for most cases.
However, when dealing with things like braids,
the current limit can sometimes be quite a pain.
2017-05-15 14:29:59 -04:00
Mike Erwin
87bbeb2837
Gawain: further cleanup to VertexBuffer_prime
...
Get buffer size once, use it to both allocate and track VRAM.
2017-05-15 13:08:38 -04:00
Mike Erwin
30d325c9e6
Gawain: cleanup VRAM usage metric
...
same functionality
2017-05-15 13:08:38 -04:00
Mike Erwin
4f7c738a38
Gawain: revert recent VRAM usage metric
...
Revert 7a18ee62eb and 1ff97bbfff after discussing with @fclem.
VertexBuffer_size should always report the same buffer size, but without asking/calling OpenGL.
2017-05-15 13:08:38 -04:00
Sergey Sharybin
5319571511
Cycles: Fix native only kernel since denoiser commit
2017-05-15 18:37:33 +02:00
Clément Foucault
77d0aec3d1
Mesh Batch Cache: Use compressed format.
...
We don't compress UV by default because that would mean restricting them to [0, 1]
Leaving all other code for later settings switch.
2017-05-15 17:55:36 +02:00
Luca Rood
9035aa9cee
Use better prng algo and fix randomness UI
2017-05-15 17:27:15 +02:00
Luca Rood
392b5b8212
Implement matcaps for hair
2017-05-15 17:27:14 +02:00
Clément Foucault
7a18ee62eb
Gawain: Fix memory manager.
2017-05-15 16:24:24 +02:00
Clément Foucault
c28a4eb8cb
Eevee: fix some glsl for low quality lamps.
2017-05-15 16:14:18 +02:00
Clément Foucault
e053fade99
Mesh Batch Cache: get rid of the ORCO VBO data, and reconstruct it in shader.
...
With only one MADD instruction we recover the orco data and reduce both the storage and the fetching cost of an attrib layer.
2017-05-15 16:14:18 +02:00
Clément Foucault
ae9da3786a
Gawain: Add assert for maximum attribute name.
2017-05-15 16:14:18 +02:00
Clément Foucault
1ff97bbfff
Gawain: Better metric for VRAM usage.
2017-05-15 16:14:18 +02:00
Clément Foucault
38125d0499
Mesh Batch Cache: Define Compressed format for shading data.
...
Deactivated by default.
All shading attribs can be packed to take less VRAM at the cost of precision (not noticable in this case).
UVs can be packed into I16 but that limits their positions into the [-1, +1] range.
This could be a setting option in the future.
2017-05-15 16:14:17 +02:00
Clément Foucault
f83a244749
Mesh Batch Cache: Optimization, make use of gawain attrib aliases.
2017-05-15 16:14:17 +02:00
Clément Foucault
cfbfa94e6b
Gawain: Add support for multiple attrib names.
...
This adds the possibility to give multiple name to the same attrib.
This allow multiple binding points depending on the shader.
2017-05-15 16:14:17 +02:00
Clément Foucault
acc5d02f69
Edit Mode Engine: Fix loose edges/verts not displaying.
2017-05-15 16:14:17 +02:00
Clément Foucault
5a377521aa
Mesh Batch Cache: Split Edit Mesh mode Vertex Buffers for faster update.
2017-05-15 16:14:17 +02:00
Clément Foucault
b3e62a8aa2
Gawain: add short vector conversion to 10_10_10
2017-05-15 16:14:17 +02:00
Sergey Sharybin
1c21e088f2
Fix T50109: Blender crash when a "Render Result" as a Texture
...
This commit fixes crash, but user feedback can be improved here to
inform artist that one can't use Render Result as a texture since that
will cause feedback loop.
2017-05-15 15:59:47 +02:00
Sergey Sharybin
ef8ad66aa2
Fix T49324: True displacement crashes when shader returns NaN
2017-05-15 15:45:19 +02:00
Sergey Sharybin
1f96dd2e0b
Fix T51348: Node highlighting is broken
...
This feature was disabled in the code but not in the interface.
Removing the code, since it needs full re-implementation anyway.
2017-05-15 13:52:17 +02:00
Dalai Felinto
b60f80e9b3
Fix T51501: Cycles baking cancel affects baking script
...
Basically upon invoking cycles baking we could canell it which would
leave G.is_break hanging as true. Since we were not setting is_break to
false before exec baking, it would misbehave.
2017-05-15 13:04:44 +02:00
Campbell Barton
b43f66bcb6
Add show-weights to edit-mode UI
2017-05-15 17:56:22 +10:00
Campbell Barton
df94f2f399
Fix T51180: BMesh crash using calc_uvs=True
...
Don't assume UV layer exist.
2017-05-15 16:53:57 +10:00
Campbell Barton
0d65dda147
Merge branch 'master' into blender2.8
2017-05-15 15:51:54 +10:00
Campbell Barton
b5b72a3f29
PyAPI: don't re-register add-ons on 'New File'
...
Some add-ons have bugs with re-registration,
they should be fixed, but no need to exacerbate the problem.
2017-05-15 15:33:01 +10:00
Campbell Barton
687ff699e9
Cleanup: warnings, style
2017-05-15 14:58:55 +10:00
Julian Eisel
77a90f7666
Fix crash when using template_search with non-ID data
2017-05-13 19:48:04 +02:00
Julian Eisel
2d22092230
Merge branch 'master' into blender2.8
2017-05-13 19:35:54 +02:00
Brecht Van Lommel
890d871bc3
Fix T51314: crash cancelling Cycles bake during scene sync and update.
2017-05-13 07:15:25 +02:00
Mike Erwin
41c4c3f8fd
remove unused #includes
2017-05-12 23:34:21 -04:00
Mike Erwin
6deaab207c
remove old PBVH VertexBufferFormat struct
...
Follow-up to 0722e41f9e which removed all uses of this struct. Gawain VertexFormat auto aligns attributes as described in @nicholasbishop's performance note.
2017-05-12 23:32:37 -04:00
Clément Foucault
1bcbad446e
Fix ogl deprecated calls.
2017-05-12 18:02:31 +02:00
Clément Foucault
7d12d8956d
Sculpt: Move sculpt drawing to engines.
...
Only mask are handled by sculpt mode engine and are multiplied on top of the render.
There is room for improvement:
- Shaded meshes don't have correct tangents or uvs.
- Masks are in range 0.8 - 0.2 thus always darkening at least 20% the render.
- It only uses the first material slot of the mesh.
2017-05-12 17:54:14 +02:00
Dalai Felinto
2eff390e13
UI: Expose more UI settings to CLAY and EEVEE
...
Physics panels are not all back, and the material related panels (e.g.,
hair render panel) should go be changed since there should be no
material for those.
2017-05-12 16:45:51 +02:00
Sergey Sharybin
8ca9fa5fd3
Fix T51153: Video duration is detected wrong after FFmpeg update
...
The issue was caused by stupid workaorund for libav. Now things works for
FFmpeg. There might need some tweaks needed for Libav, but that one is
not really priority for support.
2017-05-12 16:43:36 +02:00
Luca Rood
dbd3bf5ed2
Fix memleak in previous hair commit
2017-05-12 16:34:33 +02:00
Clément Foucault
c986b07e4d
Draw Manager: Fix crash when saving file.
2017-05-12 16:31:12 +02:00
Clément Foucault
5aca575d85
Eevee: Add Rotation and ratio parameters to DoF.
2017-05-12 16:31:12 +02:00
Luca Rood
0eb32ab228
Implement hair drawing with Draw Manager in Clay engine
...
Part of T51378
2017-05-12 16:14:55 +02:00