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
AgeCommit message (Collapse)Author
2021-06-24Cleanup: comment blocks, trailing space in commentsCampbell Barton
2020-08-12UI: Fix typo "subdivion" -> subdivisionPablo Vazquez
In the Multires panel, use singular Subdivision instead of Subdivisions.
2020-08-07Cleanup: declare arrays arrays where possibleCampbell Barton
2020-08-07Cleanup: Blenkernel, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/blenkernel` module. No functional changes.
2020-04-29Cleanup: use doxy sections for multires & subdiv sourcesCampbell Barton
2020-04-17Task: Separate Finalize into Reduce And FreeJeroen Bakker
In preparation of TBB we need to split the finalize function into reduce and free. Reduce is used to combine results and free for freeing any allocated memory. The reduce function is called to join user data chunk into another, to reduce the result to the original userdata_chunk memory. These functions should have no side effects so that they can be run on any thread. The free functions should free data created during execution (TaskParallelRangeFunc). Original patch by Brecht van Lommel {rB61f49db843cf5095203112226ae386f301be1e1a}. Reviewed By: Brecht van Lommel, Bastien Montagne Differential Revision: https://developer.blender.org/D7394
2020-04-03Cleanup: spellingCampbell Barton
2020-03-30Subdiv: Extend some commentsSergey Sharybin
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-03-13Subdiv: Fix loose geometry callbacks in certain conditionsSergey Sharybin
Loose vertices and vertices of loose edges callback was not working correct if some of other callbacks were set to NULL. Was caused by missing bitmask set in the callbacks which were set to NULL.
2020-02-28Cleanup: SpellingSergey Sharybin
2020-02-28Subdiv: Correct corner passed to foreach_loop callbackSergey Sharybin
Was affecting quad faces. where 0 was always passed for inner loops and a wrong one for boundary ones. In the current code this change shouldn't cause any difference since the corner index is ignored in the actual callback, but it is required to have his fixed for an upcoming changes.
2019-11-19Subdiv: Tweak threading settingsSergey Sharybin
Ensure that all threads on a multi-core system are used. The issue was that BLI_task module was trying to be smart and used heuristic to find optimal number of iterations per thread. This heuristic assumes that tasks are light-weight, which is not a case for subdivision surface. On a higher subdivision level with a file from T70826 the evaluation time goes down from 0.25 to 0.17 seconds per modifier evaluation. When D6189 is finalized we can being some extra performance improvement.
2019-08-01Cleanup: misc spelling fixesCampbell Barton
T68035 by @luzpaz
2019-07-30BLI_task: Cleanup: rename some structs to make them more generic.Bastien Montagne
TLS and Settings can be used by other types of parallel 'for loops', so removing 'Range' from their names. No functional changes expected here.
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-03-07Refactor CDData masks, to have one mask per mesh elem type.Bastien Montagne
We already have different storages for cddata of verts, edges etc., 'simply' do the same for the mask flags we use all around Blender code to request some data, or limit some operation to some layers, etc. Reason we need this is that some cddata types (like Normals) are actually shared between verts/polys/loops, and we don’t want to generate clnors everytime we request vnors! As a side note, this also does final fix to T59338, which was the trigger for this patch (need to request computed loop normals for another mesh than evaluated one). Reviewers: brecht, campbellbarton, sergey Differential Revision: https://developer.blender.org/D4407
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-01-26Cleanup: remove redundant BKE/BLI/BIF headersCampbell Barton
2019-01-18Subdiv: Fix wrong corner passed to a callbackSergey Sharybin
2019-01-10Subdiv: Fix memory leakSergey Sharybin
Was visible when mesh had n-gons.
2019-01-07Subdiv: Use defined order of corner/edge verticesSergey Sharybin
This switches evaluation of vertices which are on the boundaries of PTex faces to a single threaded one. While this introduces some slowdown it fixes ambiguity of PTex index used to evaluate particular vertex. Possible alternative solutions would be: - Do some pre-calculation of index, then do evaluation in threads. - Try using Gregory patches and see if that makes any affect. Fix T60235: Flickering of object instances
2019-01-07Subdiv: Move single threaded code to a single functionSergey Sharybin
Allows to more easily add more passes which are supposed to be run from a single thread.
2019-01-07Subdiv: Cleanup, de-duplicate codeSergey Sharybin
2018-12-19BLI_bitmap: add functions operating on the whole bitmask.Alexander Gavrilov
There is no point having operations that iterate over the whole bit array as macros, so convert BLI_BITMAP_SET_ALL to a function. Also, add more utilities for copying and manipulating masks. Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D4101
2018-09-24Spelling fixes in comments and descriptions (2.8 changes), patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3719
2018-09-11Multires: Fix memory leak on reshapeSergey Sharybin
Was happening when number of vertices didn't match.
2018-09-07Subdiv: Add ptex offsets to a subdiv structureSergey Sharybin
This is something what we need to know quite often from various places. Added it as a cached value in Subdiv itself, so it can be queried easily from any area. Shouldn't be a problem from memory usage point of view, it's 4MB per 1M faces coarse mesh. This is very low percentage of mesh itself, and even lower percentage of highres subdivided mesh.
2018-09-04Subdiv: Move mesh creation functionality to own headerSergey Sharybin
2018-09-04Subdiv: Move FOREACH functionality to own headerSergey Sharybin
2018-08-24Cleanup: indentation, styleCampbell Barton
2018-08-23Cleanup: trailing spaceCampbell Barton
2018-08-22Subsurf: Implement foreach traversal for subdivsion topologySergey Sharybin
This makes it more generic process to perform actions which depend on ptex face + (u, v) and on subdivided vertex index. Currently it is still just a subdivision calculation process, but same foreach callbacks can easily be used to propagate displacement from known vertex locations back to displacement grids.