Clément Foucault
ff6e61f09a
DRW: Support Wireframe for metaball objects
2018-11-23 18:03:18 +01:00
Clément Foucault
1ec21ed41a
DRW: Support Wireframe for cruve/surface/text objects
2018-11-23 16:44:53 +01:00
Campbell Barton
d56c0a0a6a
Cleanup: rename bone-select to xray
...
This shows bones in font and uses the xray toggle binding.
Also 'bone select' isn't very meaningful on it's own.
2018-11-23 13:48:21 +11:00
Campbell Barton
1ffb2bf917
Pose: make pose-bone xray usable in wpaint mode
...
Update UI, draw-manager and operator to support with pose-bone-xray
when in weight paint mode.
2018-11-23 13:19:22 +11:00
Clément Foucault
6ffb0a0ee7
DRW: Make profiling more precise on certain drivers.
...
This makes the whole rendering slower (because of sync point) but the
numbers displayed by the draw manager profiler is more precise on some
buggy drivers. They seems to issue the query before the last one ends.
2018-11-19 15:48:17 +01:00
Clément Foucault
735ad525a6
Fix T53750: Mirrored UV have bad tangent space
...
I feel silly because it was my fault all along! (see the WATCH IT warning)
2018-11-17 14:56:18 +01:00
Clément Foucault
a915da221f
Edit Mesh: Fixes display of custom normals
...
Should fix T57620
2018-11-16 00:45:22 +01:00
Clément Foucault
d941f40c21
Fix T57571: Blender crashes on UV transformation
...
That was caused by a thread safety issue on gpu_batch_presets_unregister()
which was not designed to be used for this kind of situation (managing 3D
meshes batches).
2018-11-12 18:07:01 +01:00
Sergey Sharybin
1ed31bef1a
Draw manager: Expose grease pencil helper function
2018-11-09 17:53:02 +01:00
Brecht Van Lommel
c39f34def9
Fix Cycles viewport render info overlapping other text.
...
Now it shows more compact info below the view/object name. Render time and
memory usage is left out, as in most cases this is not so important. These
could be added back optionally if needed.
2018-11-08 18:31:33 +01:00
Clément Foucault
8af53dbeab
Workbench: Fix volumetric blending leading to corrupted render results
...
Use simpler premultiplied blending.
2018-11-07 00:19:14 +01:00
Clément Foucault
205d1876ff
DRW: Fix crash with deferred compilation
2018-11-05 16:31:12 +01:00
Campbell Barton
25a9816c30
Cleanup: use bool
2018-11-05 13:22:49 +11:00
Clément Foucault
d3ade45774
Armature: Fix stick bones not scaling with pixel size
2018-11-02 16:27:34 +01:00
Clément Foucault
819e6745b0
DRW: Use GPU module wrapper for line width
2018-11-02 15:45:13 +01:00
mano-wii
bf5ba49698
Partial fix to T56865: X-ray modes does not work for the weight paint overlay.
...
Part of the D3828 review.
2018-10-30 15:20:47 -03:00
Clément Foucault
49f6c3556c
DRW: Cleanup: Redundant check
2018-10-28 21:48:22 +01:00
Campbell Barton
69dd58f210
Fix mapped mesh display skipping generated faces
2018-10-24 13:12:18 +11:00
Campbell Barton
7dfd3539d5
Cleanup: use bmesh index access functions
2018-10-24 13:07:21 +11:00
Campbell Barton
dbdf653f8e
Fix bad origindex layers for editmode modifiers
...
Reverts workaround from last commit.
2018-10-23 13:53:42 +11:00
Campbell Barton
e3013fdc3b
DRW: workaround for editmode crash w/ constructive modifiers
...
Actual cause is bad orig-index layer,
commit this to avoid crash for now.
2018-10-23 12:34:34 +11:00
Campbell Barton
5891f81f25
Cleanup: style, warning
2018-10-23 11:01:25 +11:00
Campbell Barton
6add652c38
Fix T57294: Modifiers cage ignore face visibility
2018-10-19 13:57:00 +11:00
Clément Foucault
c9faaa6ea7
DRW: Fix DRW_shgroup_create_sub returning source shgroup
...
instead of the actual sub group...
2018-10-17 19:01:56 +02:00
Campbell Barton
96dc1ad308
Fix T56735: Autosmooth option corrupts UVs
2018-10-17 13:26:27 +11:00
Dalai Felinto
540f37003c
Fix armature bones spline ik lines offset
2018-10-16 18:28:35 -03:00
Dalai Felinto
f280f83f83
Fix armature bones ik lines offset
2018-10-16 18:22:17 -03:00
Campbell Barton
c1b8ce3170
Fix crash in loose edge check
2018-10-16 15:02:30 +11:00
Campbell Barton
8a94425e96
Cleanup: redundant check for hidden edge
2018-10-16 09:01:52 +11:00
Clément Foucault
478899dee7
Edit Mesh: Fix missing loop normal display
2018-10-15 16:04:50 +02:00
Clément Foucault
03d0219d7a
Edit Mesh: Refactor edit mesh drawing
...
This decouple the vertex display from the face+edges.
This is to reduce the number of triangles required to fix the edges
artifacts (aliasing) and increase viewport reactivity when not actively
navigating (ie. mouse scroll).
Also it makes all vertices visible (not cut-off) even when navigating.
However it makes the navigation drawing a bit slower because it has to
render twice.
Also add a depth bias to the wires to avoid depth fighting when previewing
final mesh (modifiers applied).
2018-10-12 16:43:40 +02:00
Clément Foucault
01745051de
DRW: Add DRW_shgroup_create_sub to create children shgroup
...
This makes is easy to create nested drawcalls that will inherit all the
parents properties. This is usefull if only a few uniforms changes for that
drawcall.
2018-10-12 16:38:55 +02:00
Campbell Barton
5400d6a8fa
DRW: correct loose edge hidden face check
2018-10-12 17:00:10 +11:00
Campbell Barton
db91414d7b
Cleanup: minor mesh allocation changes
2018-10-12 16:47:43 +11:00
Campbell Barton
eef365a126
Cleanup: use const pointers
2018-10-12 16:42:11 +11:00
Campbell Barton
33e2cf2aab
Cleanup: fill vertex buffer in order
2018-10-12 16:25:16 +11:00
Campbell Barton
8ef8b64fc6
DRW: edit-mesh cage loose edge/vert support
2018-10-12 16:05:31 +11:00
Campbell Barton
f4b0684a3f
DRW: edit-mesh cage selection support
2018-10-12 13:05:18 +11:00
Campbell Barton
c901ebcd21
DRW: add mapped edit-mode face-dot drawing
2018-10-11 17:23:29 +11:00
Campbell Barton
641190adff
DRW: Initial edit-mode cage support
...
Modifiers such as sub-surf and mirror now work with show-on-cage.
Selection and loose geometry still needs to be supported.
2018-10-11 16:53:25 +11:00
Campbell Barton
d74b89aed0
DRW: add ability to skip drawing vertices
2018-10-11 16:43:38 +11:00
Campbell Barton
bf455c2ca9
DRW: avoid edit-mode layer lookups for freestyle
2018-10-11 15:24:26 +11:00
Campbell Barton
fb79357b3e
Cleanup: assign a var to check an edge is real
...
Makes code slightly more readable.
2018-10-11 15:15:30 +11:00
Campbell Barton
92a494ed51
DRW: remove redundant editmode mesh tessellation
...
Also re-order logic so loop indices are ensured to be valid.
2018-10-11 11:41:24 +11:00
Campbell Barton
59e4935266
Fix draw manager out of bounds assignment
2018-10-11 09:29:23 +11:00
Campbell Barton
66738d4aa0
Merge branch 'master' into blender2.8
2018-10-11 09:08:30 +11:00
Campbell Barton
95f2604ea7
Cleanup: indentation
2018-10-11 08:20:35 +11:00
Dalai Felinto
1b1702abb0
Fix runtime error: shift of uint
...
The warning was: runtime error: left shift of 1 by 31 places cannot be
represented in type 'int'
Patch by Clément Foucault.
2018-10-10 13:35:34 -03:00
Campbell Barton
84cf670d1d
Modifier: Fix cage option for deform modifiers
...
Show-on-cage and show-in-editmode options now work as it did in 2.7x
(but only for deformation).
2018-10-10 15:53:52 +11:00
Clément Foucault
c630ce3f6d
Fix T57097: Crash when adding a Texture Slot in Texture Paint mode
...
Was caused by the use of a batch that was using a discarded index buffer.
2018-10-09 17:55:19 +02:00