Age | Commit message (Collapse) | Author |
|
This was because the main_fb was not bound back to be updated.
Following draw calls were drawn without depth buffer.
|
|
|
|
Should also fix T55000: Crash with hooks and curves in Cycles render.
|
|
When entering edit mode the texture coordinates is not calculated by
drawcachemesh. For now fallback to solid mode. This gives wrong
artifacts when disabling overlays when in edit mode. We should make it
possible to calculate the UVLOOP from bmesh. This will be done in a next
patch
|
|
|
|
|
|
|
|
|
|
This enables the modifiers to access things like vertex groups. Care should
be taken to not modifier the mesh itself in this case.
|
|
The actual code is a bit convoluted but allows good and "pseudo efficient"
drawing. (pseudo efficient because rendering instances with that amount of
vertices is really inneficient. We should go full procedural but need to
have bufferTexture implemented first) But drawing speed is not a bottleneck
here and it's already a million time less crappy than the old (2.79) immediate
mode method.
Instead of drawing actual wires with different width we render a triangle
fan batch (containing 3 fans: bone, head, tail) which is then oriented in
screen space to the bone direction. We then interpolate a float value
accross vertices giving us a nice blend factor to blend the colors and
gives us really smooth interpolation inside the bone.
The outside edge still being geometry will be antialiased by MSAA if enabled.
|
|
|
|
|
|
Now we use vcos when provided, and fall back to mesh vertices' co
otherwise.
Deform modifiers usually do not have up-to-date coordinates in Mesh
itself, only in given vcos array!
|
|
|
|
|
|
|
|
No need to hard-coded handling of every individual matcap.
They are in the continuous index range anyway.
|
|
Stringify the actual constant instead.
|
|
Aside from identation, seed should change for each object. Otherwise to objects
with a copied mesh would get the exactly same "random" selection.
And we do so in a consistent way so it doesn't vary depending on
object order.
Seed bump using hash suggested by Campbell Barton and Sergey Sharybin.
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3231
|
|
This modifier still has issues that are not related to this port:
- While editing the deformation mesh, the deformed mesh doesn't update.
This update only happens after exiting edit mode, making editing
cumbersome.
- Binding doesn't work yet. It works fine when binding in master and
loading pre-bound in 2.8. This was also an issue before this port, and
will be investigated separately.
|
|
|
|
Changes by me:
* Identation (tabs not space)
* Moving RNA_.*_get outside for loop)
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3230
|
|
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3224
|
|
Loading a file that was written with the master branch into the 2.8 branch,
and then trying to load or save, caused a segfault.
|
|
Changes by me: Moving RNA_.*get outside for loop and indentation fix.
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3221
|
|
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3220
|
|
|
|
Let's be clear about functions generating datablocks outside of Main
database.
|
|
Including 'nomain' in the name explicitifies that the returned mesh is
NOT stored in any library.
|
|
|
|
|
|
This calls BKE_mesh_calc_normals() only if the mesh vertex normals are
marked as dirty.
|
|
This function creates a Mesh struct with a number of vertices/edges/etc.
It allocates the minimal number of CD layers needed.
Currently not yet used, but will be soon in the upcoming
BKE_new_mesh_from_curve_displist().
|
|
Maniphest Tasks: T54641, T54643
Differential Revision: https://developer.blender.org/D3218
|
|
Maniphest Tasks: T54641, T54643
Differential Revision: https://developer.blender.org/D3217
|
|
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3219
|
|
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3215
|
|
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3214
|
|
Needed so changing orientation refreshes.
|
|
|
|
|
|
|
|
|
|
The tool manipulator could become disabled when set in the wrong mode.
|
|
|
|
|
|
With minor indentation changes by me.
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3211
|
|
With changes by me:
* Indentation (tabs)
* Removing RNA_boolean_get tests out of the for loop.
* Continue iterator if no selected vertice.
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3210
|
|
Add extrude operator that's intended to work on the current selection
and be activated as a tool.
|
|
|