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-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)
2022-05-02Merge branch 'blender-v3.2-release'Henrik Dick
2022-05-02GPencil: Fix envelope modifier deform mode thicknessHenrik Dick
The thickness in the deform mode was just correct if the radius when drawing a stroke was set to 20. Now all factors that influence the stroke thickness are considered in deform mode. Differential Revision: https://developer.blender.org/D14691
2022-05-02GPencil: New Noise modifier random in Keyframes onlyAntonio Vazquez
This is for some animation styles that usually copy and paste keyframes and they want avoid that both frames look equal, but they don't want noise randomness changes in the inbetween frames. The patch adds a new random `Mode` option to select when the noise change. Reviewed By: pepeland Maniphest Tasks: T97099 Differential Revision: https://developer.blender.org/D14566
2022-04-28GPencil: Fix offset modifier performance regressionFalk David
When using an offset modifier on a grease pencil object, the performance could be impacted due to the randomize option introduced by rB6a2bc40e0131. Even if the option was not used (offset, rotation, scale set to zero), the modifier would still compute the random transformation matrix. The patch checks if the randomization is used and only then caluclates the matrix. Reviewed By: #grease_pencil, antoniov Differential Revision: https://developer.blender.org/D14553
2022-04-28Cleanup: spelling in commentsCampbell Barton
Also use back-slashes for doxy commands.
2022-04-20Cleanup: spelling in commentsCampbell Barton
2022-04-14Fix T96875: Envelope modifier strokes cannot be eselected with TweakAntonio Vazquez
The new created strokes were not setting the right `orig` pointers, so the select operator could not select the strokes and points. Now, the original pointers are set in the new strokes. To set the values is necessary assign the original pointer from the reference stroke because in modifiers the stroke is evaluated, so we need back two levels: Eval->Eval->Orig
2022-04-11Cleanup: malformed C-style comment blocks, spellingCampbell Barton
- Missing star prefix. - Unnecessary indentation. - Blank line after dot-points (otherwise doxygen merges with the previous dot-point). - Use back-slash for doxygen commands. - Correct spelling.
2022-04-07GPencil: Add skip option to envelope modifierHenrik Dick
This patch adds an option to only use every n-th segment of the envelope result. This can be used to reduce the complexity of the result. Differential Revision: http://developer.blender.org/D14503
2022-04-04Fix T97019: Regression - GPencil Shrinkwrap modifier not longer workingAntonio Vazquez
Bug introduced in the smooth function changes done in commit rBd4e1458db3a0e0eaf80219dc8e6d10cb27620793 Differential Revision: https://developer.blender.org/D14548
2022-04-04Cleanup: ensure space after file named in headersCampbell Barton
Add blank lines after file references to avoid them being interpreted as doc-strings the following declarations.
2022-04-03Fix T97001: Grease pencil array modifier relative offset brokenHans Goudey
This has been broken for two years, since rB29f3af952725, which retrieved the bounding box from an object and immediately overwrote it with -1, 1. That commit had another problem though-- the modifier stack shouldn't use object level data, it should use data from the previous modifier. Differential Revision: https://developer.blender.org/D14524
2022-04-02Cleanup: Further use of const for object bounding boxesHans Goudey
Also solves two warnings from the previous similar commit, f688e3cc3130e70e77f0bb0. The change to the grease pencil modifier is quite suspicious, but doesn't change the behavior, which was already broken.
2022-04-01Cleanup: Use const for bounding boxes where possibleHans Goudey
2022-03-31Fix T94888: LineArt use the same triangulation as viewport.YimingWu
This fixes inconsistencies between line art output and viewport triangulation result.
2022-03-30Cleanup: use "num" as a suffix in: source/blender/gpencil_modifiersCampbell Barton
2022-03-29GPencil: Small UI tweaks to Build modifierAntonio Vazquez
Changes in some names.
2022-03-29GPencil: Fading for build modifier.YimingWu
Adds fading support for build modifier so it's not a hard cut off Reviewed By: Antonio Vazquez (antoniov), Matias Mendiola (mendio) Differential Revision: https://developer.blender.org/D14309
2022-03-26Cleanup: use "use_" prefix for booleansCampbell Barton
2022-03-25GPencil: Cyclic flag for dot dash modifierYimingWu
Cyclic option per segment, allows interesting "loop" visual effects. Reviewed by: Antonio Vazquez (antoniov) Differential Revision: https://developer.blender.org/D14439
2022-03-25GPencil: Improve smooth operationHenrik Dick
This patch makes the grease pencil smooth operation symmetric. It also increases the performance a lot if strong smoothing is required. Additionally there is an option for the position smooth operation to keep the shape closer to the original for more iterations. Since the result differs from the previous algorithm, versioning is used to change the iterations and factor to match the old result. Differential Revision: http://developer.blender.org/D14325
2022-03-25Cleanup: spelling in comments, stringsCampbell Barton
2022-03-25Cleanup: unused warningsCampbell Barton
2022-03-24GPencil: New Envelope ModifierHenrik Dick
This new modifier creates a shape known as envelope. It connects all points that are n points apart. There is also a mode which fits a single stroke to the envelope shape that is determined by that rule. For more details, refer to the patch. Reviewed By: NicksBest, antoniov, frogstomp, mendio Differential Revision: http://developer.blender.org/D14341
2022-03-24GPencil: lower bounds for gap in dot dash modifierHenrik Dick
This patch maximizes the possible bounds for the dash and gap parameters in the dot dash modifier. This makes e.g. chopping up lines without gaps possible. Differential Revision: http://developer.blender.org/D14428
2022-03-22Fix T96308: Mesh to BMesh conversion doesn't calculate vertex normalsHans Goudey
Currently there is a "calc_face_normal" argument to mesh to bmesh conversion, but vertex normals had always implicitly inherited whatever dirty state the mesh input's vertex normals were in. Probably they were most often assumed to not be dirty, but this was never really correct in the general case. Ever since the refactor to move vertex normals out of mesh vertices, cfa53e0fbeed7178c7, the copying logic has been explicit: copy the normals when they are not dirty. But it turns out that more control is needed, and sometimes normals should be calculated for the resulting BMesh. This commit adds an option to the conversion to calculate vertex normals, true by default. In almost all places except the decimate and edge split modifiers, I just copied the value of the "calc_face_normals" argument. Differential Revision: https://developer.blender.org/D14406