Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
AgeCommit message (Collapse)Author
2020-08-13GPUBatch: GL backend isolationClément Foucault
This changes the drawing paradigm a bit. The VAO configuration is done JIT-style and depends on context active shader. This is to allow more flexibility for implementations to do optimization at lower level. The vao cache is now its own class to isolate the concept. It is this class that is reference by the GLContext for ownership of the containing VAO ids.
2020-08-13GPUBatch: Move allocator to backendClément Foucault
2020-08-13GPUBatch: Merge phase and ownership flags and cleanup there usageClément Foucault
Also add new flags to communicate specific behavior to future backend.
2020-08-13DRW: InstanceData: Remove hacks of batch freeing callbackClément Foucault
We instead use a handle reference counter on the GPUVertBufs used by the instancing batches. This make sure that if an update happens on the GPUVertBuf used to contruct the batch, they will never have the same memory address than the previously allocated ones (since they are still pending deletion thanks to the refcounter). This avoid the linear search to update the GPUBatch in the case a batch is deleted (which was even a bad option since they could be only cleared)
2020-08-13GPU: Use GPU_vertbuf_create & GPU_indexbuf_calloc instead of manual allocClément Foucault
2020-08-13GPUVertBuf: Add handle refcountClément Foucault
A handle refcount is here to avoid freeing of the GPUVertBuf datablock if it is still referenced somewhere else. This does not prevent deleting the actual data. This is to avoid too much zombie data usage. This is in order to avoid most hacks inside `draw_instance_data.c`.
2020-08-13GPUBatch: Remove most use of GPU_batch_draw_advanced()Clément Foucault
This is in order to better encapsulate / isolate the drawing code.
2020-08-13Cleanup: GPUBatch: Remove GL functions from uniform assignmentClément Foucault
2020-08-13Cleanup: GPUBatch: Move gpu_batch_private.h to CPP headerClément Foucault
2020-08-13Cleanup: GPUShader: Remove unused codeClément Foucault
2020-08-13GPUShader: Change shader state tracking to be part of the GPUContextClément Foucault
This remove the use of batch->program and replace it with batch->shader. This will allow GL abstraction latter.
2020-08-13GPUBatch: Remove usage of gl_prim_type outside of GPU moduleClément Foucault
2020-08-13GPUDrawList: GL backend isolationClément Foucault
2020-08-13Fix T65148: Drivers can't access shape keysSybren A. Stüvel
It was impossible for drivers to use shape key properties, modifiers generate a new mesh. After mesh evaluation the shape keys are no longer necessary, and because of this the `key` pointer was not copied. As drivers work on evaluated data, however, they do need this `key` pointer. This commit makes the `key` pointer available in evaluated meshes, but this is somewhat dangerous. There was an explicit reason why the key on result was kept at null pointer: to have the evaluated mesh in a consistent state. Assigning this pointer makes it potentially inconsistent, as the evaluated mesh and the original shape key may have different topologies. Reviewed By: sergey Differential Revision: https://developer.blender.org/D7785
2020-08-13Merge branch 'blender-v2.90-release'Philipp Oeser
2020-08-13Fix T79743: baking still uses cage object after removalBrecht Van Lommel
2020-08-13Fix T79653: Change soft min frame start of cache from 1 to 0Jacques Lucke
It was always possible to set it to zero by typing in the value. This new soft limit is more consistent with the fluid cache and the Scene.frame_start property.
2020-08-13GPencil: Remove unused parameter and fix warningAntonio Vazquez
2020-08-13Cleanup: incorrect comment wrappingCampbell Barton
Missed this comment when updating fix for T77409.
2020-08-13Cleanup: warningsCampbell Barton
2020-08-13Cleanup: spellingCampbell Barton
2020-08-13Cleanup: clang-formatCampbell Barton
2020-08-13Merge branch 'blender-v2.90-release' into masterCampbell Barton
2020-08-13Merge branch 'blender-v2.90-release' into masterCampbell Barton
2020-08-13Fix T77409: Crash showing vertex/face duplicators in edit-modeCampbell Barton
This was a regression in deaff945d0b9 which skips copying a mesh. Dupli-verts/faces were not updated to account for this. This supports iterating over edit-mesh vertices & faces, since falling back to a full copy (as we do in some places) will be slow while transforming geometry. This commit looks as if it would change behavior with orcos, since any edit-mesh deformation causes them to be assigned. However in practice there is no functional change, details in comments.
2020-08-13Cleanup: remove two sided face checkCampbell Barton
Two sided faces aren't supported and would cause many issues elsewhere.
2020-08-13Cleanup: use 'inst_ob' variable name for consistencyCampbell Barton
Dupli verts/faces named these arguments differently.
2020-08-13Cleanup: remove unused struct members from dupli-face/vertCampbell Barton
Replace the evaluated mesh with VertexDupliData.mvert since only vertices are used. This makes dupli-vert similar to how dupli-face was already working.
2020-08-13Cleanup: move mesh access for dupli vert/face into shared functionCampbell Barton
De-duplicate mesh access & comments.
2020-08-13Cleanup: pass normal as a float to dupli-vert functionCampbell Barton
Needed for supporting edit-mode dupli-verts. Currently the un-scaled short values are used to avoid changing behavior (noted in comments).
2020-08-13Cleanup: spelling, use full sentences for object_dupli.cCampbell Barton
2020-08-13Cleanup: use const for dupli vert/face, 'r_' prefix for return valueCampbell Barton
Make it obvious which values are used read-only, which are written to.
2020-08-13Merge branch 'blender-v2.90-release'Hans Goudey
2020-08-13UI: Fix curve widget fill artifactspembem22
Disable antialiasing which caused artifacts. Differential Revision: https://developer.blender.org/D8497
2020-08-13Fix hair collision error introduced in recent commitGermano Cavalcante
2020-08-13Cleanup: Silence some arithmetic overflow warningsGermano Cavalcante
2020-08-13Cleanup: Move definitions of some variables closer to their useGermano Cavalcante
2020-08-13Cleanup: move assignment out of loopGermano Cavalcante
2020-08-13Cleanup: Rename variable 'cloth1' to 'cloth'Germano Cavalcante
2020-08-13Fix Boundary Brush symmetry with no constant falloffPablo Dobarro
When using constant falloff symmetry was working fine because the same deformation is applied twice on the same vertices. When using no constant falloffs, the deformation is different between symmetry passes, so vertices need to be separated by symmetry areas to get the right deformation from its symmetry pass without being overwriten by the next one. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8541
2020-08-13GPencil: Remove unused variable and fix memory leakAntonio Vazquez
This was missing in previous commit
2020-08-13Sculpt: Boundary Brush Falloff Types and OffsetPablo Dobarro
This adds the boundary_falloff_type and boundary_offset to control how the falloff of the Boundary Brush is applied. Boundary Origin Offset is the same concept as the Pose Origin offset in the Pose Brush. It is a multiplier that adds extra length to the brush radius to locate the deformation pivot further from the boundary without affecting the falloff. The Falloff type includes Constant (previous default), brush radius, loop and loop and invert. Loop and Loop and Invert can be used to create deformation patterns in a mesh. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8526
2020-08-12GPencil: Remove unused parameter in convert curveAntonio Vazquez
The only_stroke parameter is not used
2020-08-12GPencil: Clean material list when convert a curveAntonio Vazquez
Now the list of materials is cleanup and any duplicated material is removed.
2020-08-12GPencil: Move merge similar materials code to BKEAntonio Vazquez
This is required in other places and need to be shared.
2020-08-12GPencil: Fix unreported problem in merge similar materialsAntonio Vazquez
When two similar colors were adjacent, the colors were not merged.
2020-08-12GPencil: Fix unreported error in merge similar materialsAntonio Vazquez
When the color was black, the original value was not initialized and get a NaN value with unexpected results. Also cleanup code.
2020-08-12GPencil: Remove unused linesAntonio Vazquez
2020-08-12GPencil: Recode all material management when convert SVGAntonio Vazquez
2020-08-12GPencil: Add Sample parameter to Convert curveAntonio Vazquez
This allows to resample the stroke to avoid too dense geometry.