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
2022-08-01I18n: make Grease Pencil modifiers and shader FX translatable.Damien Picard
Pretty much like D15418: add `N_()` macro around names for Grease Pencil modifiers and shader FX. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D15532
2022-07-20Cleanup: remove unused get_cage_mesh parameterJacques Lucke
All callers passed `false` for this parameter, making it more confusing than useful. If this functionality is needed again in the future, a separate function should be added. Differential Revision: https://developer.blender.org/D15401
2022-07-13Fix T99654: Applying Mirror modifier breaks the erase toolAntonio Vazquez
The problem was the new generated strokes were copied from original and the location was offset to mirror, but the internal geometry data was not updated and the collision check done by brushes was not working. Now, the internal geometry data is recalculated when the modifier is applied.
2022-07-11Fix/Cleanup UI messages.Bastien Montagne
2022-07-01Fix T99268: LineArt better handling for dense overlappings.Yiming Wu
Two main fixes: - Split tiles only when we are more sure that it will improve distribution. - Discard edges and chains that are not gonna be used afterwards before chaining. This speeds up the whole process and also eliminates unnecessary tile splitting. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D15335
2022-06-30Cleanup: Remove scene frame macros (`CFRA` et al.)Julian Eisel
Removes the following macros for scene/render frame values: - `CFRA` - `SUBFRA` - `SFRA` - `EFRA` These macros don't add much, other than saving a few characters when typing. It's not immediately clear what they refer to, they just hide what they actually access. Just be explicit and clear about that. Plus these macros gave read and write access to the variables, so eyesores like this would be done (eyesore because it looks like assigning to a constant): ``` CFRA = some_frame_nbr; ``` Reviewed By: sergey Differential Revision: https://developer.blender.org/D15311
2022-06-30Cleanup: use "use_" prefix for boolean propertyCampbell Barton
2022-06-30Cleanup: formatCampbell Barton
2022-06-30Cleanup: spelling in commentsCampbell Barton
2022-06-29LineArt: Shadow and related functionalities.Yiming Wu
This patch includes the full shadow functionality for LineArt: - Light contour and cast shadow lines. - Lit/shaded region selection. - Enclosed light/shadow shape calculation. - Silhouette/anti-silhouette selection. - Intersection priority based on shadow edge identifier. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D15109
2022-06-27Cleanup: spelling in commentsCampbell Barton
2022-06-23LineArt: Cleanup minor warnings from variable type changes.Yiming Wu
2022-06-21LineArt: Move style options to top of the modifier.Yiming Wu
Reviewed By: Antonio Vazquez (antoniov) Differential Revision: https://developer.blender.org/D15164
2022-06-16LineArt: Variable name cleanups.Yiming Wu
Use more descriptive names for some of the two character variables. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D15192
2022-06-13LineArt: General code cleanups.Yiming Wu
- Use uintxx_t for all 8/16/64 bit integer types. - Removed prepend_edge_direct thingy which is no longer needed in current edge iterator model. - Minor code path adjustments like only copies view vector when necessary etc. - Correctly handle ies==NULL in edge cutting function. - White spaces and comments etc. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D15181
2022-06-13Cleanup: Use more specific includes for grease pencil modifiersHans Goudey
Also remove unused includes in some cases. This should make these files recompile less often.
2022-06-10LineArt: Clean up `LineartRenderBuffer`.Yiming Wu
This patch does code clean ups in `LineartRenderBuffer` because it's grown kinda big and we need better way to organize those variables inside. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D15172
2022-06-10Cleanup: Clang tidyHans Goudey
2022-06-03LineArt: Include minor fixes in branch that's missing in master.Yiming Wu
2022-06-03Cleanup: spelling in commentsCampbell Barton
2022-06-02LineArt: Speedup construction of quad trees.Yiming Wu
Using multithread for `add_triangles` to speed up quad tree building. Each thread would lock its respective tile to work on triangle insertion, intersection calculation, tile splitting and triangle array extension. Reviewed By: Sebastian Parborg (zeddb), Sergey Sharybin (sergey) Ref D14953
2022-06-01LineArt: Adding a intersection timer.Yiming Wu
This is for conveinence of perfomance comparison.
2022-06-01LineArt: Temporary fix for object loading iterator.Yiming Wu
Use `DEG_OBJECT_ITER_BEGIN`for loading objects, this iterator is technially unsafe to use *during* depsgraph evaluation, see https://developer.blender.org/D14997 for detailed explainations.
2022-06-01Cleanup: remove redundant const qualifiers for scalar & enum typesCampbell Barton
2022-05-30Cleanup: Clang tidyHans Goudey
Mostly duplicate includes, also use nullptr, and using default member initializers.
2022-05-25Fix T98355: Line art crash when switch to mesh edit mode.YimingWu
This fix will ensure not to load any meshes that's being edited, thus avoiding crashes. Ref D15022
2022-05-25Fix T98359: Handle object that has no feature lines.YimingWu
In case of line art "occlusion only" or contour not enabled, it's possible for an object to not produce any feature lines. This patch checks that to prevent freeing a NULL pointer.
2022-05-23Revert "LineArt: Use CAS for add_triangles."Ray Molenkamp
This reverts commit 14a5a91e0e033d712134c112a4778b495bd73ba1. This caused build errors on x64+arm mac builds and some versions of MSVC, reverting for now till a better solution is found.
2022-05-23LineArt: Use CAS for add_triangles.YimingWu
Using the atomic "compare and swap" method in add_triangles stage dramatically speeds up the add_triangles call and significantly reduced the overall calculation time. This is currently the fastest method we have experimented with so far. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D14953
2022-05-23GPencil: A Ping Pong effect to Time modifierAleš Jelovčan
This patch adds 4th option to Time offset modifier Modes. It loops from start frame to end frame and then back to start in reverse direction. In other words it is a combination of Normal and Reverse mode. Especially with offset control it adds the ability to create easy looping animations such as cheering crowds, flowers opening and closing at different offsets. Reviewed By: #grease_pencil, antoniov, pepeland, mendio Differential Revision: https://developer.blender.org/D14965
2022-05-23LineArt: Fix adjacent edge sorting.YimingWu
The sorting end element should be `start+len` not `start+len-1`.
2022-05-23Merge branch 'blender-v3.2-release'Aaron Carlisle
2022-05-22Fix T98320: GPencil Crash with Length and Build ModifiersAntonio Vazquez
The length modifiers creates a NULL strokes and this is not handled by Build modifier.
2022-05-19Cleanup: spelling in comments & move doc-strings to headersCampbell Barton
2022-05-18LineArt: Use array instead of lists for edges pending occusion queryYimingWu
It turns out there's no practical use for separating different edge types before final occlusion stage, also using an array should be faster overall. So changed those lists into one pending array, it also made the iteration and occlusion task scheduling simpler. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D14951
2022-05-18LineArt: Remove LineartEdge::obindex.YimingWu
After changing the duplicated edge removal method in D14903, these two obindex variables are no longer needed. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D14949
2022-05-18LineArt: Use safe lineart_discard_duplicated_edgesYimingWu
The old method doesn't check e for array boundary. The new method ensures it only access valid elements. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D14903
2022-05-18LineArt: Prioritize connecting chains from the same contour loopYimingWu
This change allows the chaining function to select edges from the same contour loop first, thus reduced rouge chain connections (connected different objects instead of chaining inside the same object first) and improved chaining quality. This patch also included the default value change for chain split threshold (Now don't split by default to make initial result as smooth as possible) Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D14950
2022-05-17Merge branch 'blender-v3.2-release'Antonio Vazquez
2022-05-17Fix unreported: GPencil Time offset modifier Reverse only plays 2 timesAleš Jelovčan
This patch fixes long standing issue of reverse mode only performing loop 2 times and then stops displaying. Differential revision: https://developer.blender.org/D14921
2022-05-17Cleanup: spelling in commentsCampbell Barton
2022-05-13LineArt: Better behavior of smooth tolerance.YimingWu
This fixes the smooth tolerance feature in master where sometimes you could get over simplified chains and lose the shape it's supposed to be originally. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D14929
2022-05-13Fix T96781: LineArt proper object iterator.YimingWu
This patch get rid of the _incorrectly used_ DG iterator in object loading, and uses scene objects iteration to prevent problems. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D14907
2022-05-13Cleanup: spelling in comments, capitalize tagsCampbell Barton
Also add missing task-ID reference & remove colon after \note as it doesn't render properly in doxygen.
2022-05-11Cleanup: formatCampbell Barton
2022-05-10LineArt: Use thread safe bound box.YimingWu
The old method is not thread safe, which will lead to minor memory leaks. This patch fixed that. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D14904
2022-05-05Cleanup: sort cmake file listsCampbell Barton
2022-05-05Cleanup: spelling in commentsCampbell Barton
2022-05-04LineArt: Clean up file name and license.YimingWu
lineart_cpp_bridge.cpp changed to .cc
2022-05-04LineArt: Object loading optimizationYimingWu
This patch replaces BMesh conversion into index-based triangle adjacent lookup method, and use multithread in many steps to speed up object loading for line art. Differential Revision: https://developer.blender.org/D14627 Reviewed By: Sebastian Parborg (zeddb)