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-30Transform: support multi-threading for most modesCampbell Barton
Multi-threading support for transform modes: bevel-weight, crease, push-pull, rotate, shear, shrink-fatten, skin-resize, to-sphere, trackball & translate. This is done using a parallel loop over transform data. From testing a 1.5million polygon mesh on a 32 core system the overall performance gains were between ~20-28% To ensure the code is thread-safe arguments to shared data are const. Reviewed By: mano-wii
2021-06-30Cleanup: use const arguments for accessor functionsCampbell Barton
2021-06-30Cleanup: use const for datatoc declarationsCampbell Barton
2021-06-30Geometry Nodes: Curve Primitive Bezier SegmentJohnny Matthews
Creates a Curve with 1 Bezier Spline from four positions (start, start handle, end handle, end) and a resolution. The handles are aligned and mirrored automatically. An "Offset" mode is also included to allow specifying the handles relative to the control points. The default settings recreate the existing default Bezier Curve in the 3D viewport add menu. Differential Revision: https://developer.blender.org/D11648
2021-06-30Cleanup: rename 'count' to 'len'Campbell Barton
Reserve the term count for values that require calculation (typically linked lists). Without this convention it's difficult to know if using a length accessor function in a loop will be O(N^2) without inspecting the underlying implementation.
2021-06-30Cleanup: unused arg warningsCampbell Barton
2021-06-30Geometry Nodes: Curve Primitive Quadratic Bezier SegmentJohnny Matthews
This patch is for a node that creates a poly spline from a 3 point quadratic Bezier. Resolution is also specified. Curve primitives design task: T89220 Differential Revision: https://developer.blender.org/D11649
2021-06-30Geometry Nodes: Curve Primitive SpiralJohnny Matthews
This node creates a curve spline and gives control for the number of rotations, the number of points per rotation, start and end radius, height, and direction. The "Reverse" input produces a visual change, it doesn't just change the order of the control points. Differential Revision: https://developer.blender.org/D11609
2021-06-30Geometry Nodes: Curve Primitive SpiralJohnny Matthews
This patch adds a Curve Primitives menu in Geometry nodes with an initial entry of a star primitive. The node is a basic star pattern node that outputs a poly spline. Options control the inner and outer radius, the number of points, and the twist of the valleys. Differential Revision: https://developer.blender.org/D11653
2021-06-30Cleanup: split uses of _snap_sequencer_apply according to transform modeGermano Cavalcante
The `applySnap` callback of each mode was overwriting the value calculated in `transform_snap_sequencer_apply`.
2021-06-29Cleanup: Deduplicate codeGermano Cavalcante
2021-06-29Cleanup: split CalcSnapGeometry in smaller functionsGermano Cavalcante
2021-06-29VSE: Improved SnappingRichard Antalik
Change snapping behavior to snap strip edges when they are close to snap point. Default behavior is, that each transformed strip is snapped to any other strip. Implement snapping controls in sequencer tool settings. These controls include: - Snapping on/off - Ability to snap to playhead and strip hold offset points - Filter snap points by excluding sound or muted strips - Control snapping distance Snapping controls are placed in timeline header similar to 3D viewport Reviewed By: mano-wii Differential Revision: https://developer.blender.org/D11646
2021-06-29Fix crash on link/append for asset data-blocks in Thumbnails modeJulian Eisel
Same fix as 03a83b4eb5bc, but for the Thumbnails display mode.
2021-06-29Fix T89523: Cycles OpenCL compile error after recent changesBrecht Van Lommel
Also correctly used inverse transposed matrix for normal transform.
2021-06-29Win32: Window Placement DPI and Scale AdjustmentHarley Acheson
When using multiple monitors that differ in scale and/or dpi, the varying sizes of the window titles and borders can cause the placement of those windows to be out by a small amount. This patch adjusts for those differences on Windows 10 and newer. see D10863 for details and examples. Differential Revision: https://developer.blender.org/D10863 Reviewed by Ray Molenkamp
2021-06-29UI: Support setting operator properties for `UILayout.operator_menu_enum()`Julian Eisel
`UILayout.operator_menu_enum()` now returns the operator properties, just like `UILayout.operator()`. This makes it possible to set options for the operator displayed in the menu. In C it can be done through the new `uiItemMenuEnumFullO()` or `uiItemMenuEnumFullO_ptr()`. It's reasonable to have this, probably just a small thing never bothered to add. D10912 could use it, the following comment can be addressed now too: https://developer.blender.org/diffusion/B/browse/master/source/blender/editors/space_nla/nla_buttons.c$583-586
2021-06-29Cleanup: Win32 Window CreationHarley Acheson
This is just some cleanup of the Win32 window creation code. After CreateWindowExW() this patch uses some early exits to replace some potentially confusing if blocks. No functional changes. Differential Revision: https://developer.blender.org/D11446 Reviewed by Ray Molenkamp
2021-06-29Fix Cycles hair render error on GPU after recent changesBrecht Van Lommel
Volumes primitive needs to be part of traceable primitives.
2021-06-29Cleanup: Remove unused function in lineart_cpu.cYimingWu
2021-06-29Fix T70615: Cycles ignores BSDF inputs when nodes are optimizedKévin Dietrich
When compiling BSDF nodes, we only assing stack space to the normal and tangent inputs if they are linked. However, it could be that the ConstantFolder removed the link, so checking if there is a link fails to take this into account. To fix this, added a flag to ShaderInput to keep track of whether a constant was folded into the input, and use it as well to verify that the socket is linked when assigning stack space. Reviewed By: brecht Maniphest Tasks: T70615 Differential Revision: https://developer.blender.org/D11731
2021-06-29LineArt: Filtering intersection lines using mask numbersYimingWu
Mask value works just like transparency mask. You are able to select intersection lines inside a collection or, between collections. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D11309
2021-06-29Fix T89484: NLA "Remove Empty Animation Data" missing Outliner refreshPhilipp Oeser
Similar to rBb4530deec478, just add appropriate notifier. Maniphest Tasks: T89484 Differential Revision: https://developer.blender.org/D11724
2021-06-29Fix T89526: "Toggle Maximize Area" clears context screen propertiesCampbell Barton
Removed in b787581c9cda5a0cd4bc8b03bbdd1f9832438db4 as it's comment noted it was bad code, the reason for it's necessity was no longer valid. Add this back with comment explaining why it's still needed.
2021-06-29Cleanup: unused warningsCampbell Barton
2021-06-29LineArt: Use separate sub panel for line types.YimingWu
Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D11735
2021-06-29Cleanup: use 'const' arguments in transform calculationCampbell Barton
Use const arguments to simplify further optimizations. Transforming elements shouldn't need to change their containers data-structures. ElementResize for grease pencil stroke thickness was modifying TransInfo.num & TransInfo.values_final. Now copies are operated on to preserve const correctness although it's worth investigating if this can be avoided altogether.
2021-06-29Cleanup: clang-formatCampbell Barton
2021-06-29Cleanup: spellingCampbell Barton
2021-06-29Cleanup: GPU Shader Log Parsing.Jeroen Bakker
- Added functions to check if the cursor is at a number. - Added function to parse a number. - Joined skip_separator functions. - Added function to check if cursor is at any given set of characters.
2021-06-29Fixed issue in previous commit.Jeroen Bakker
During development a test was disabled. Enabling it again.
2021-06-29Fix T89405: Viewport Render Preview glitching (AMD)Jeroen Bakker
AMD Drivers didn't report an additional space in the rendered. This made testing for the HQ workaround fail and the issue appeared back on certain cards. This fix will test with surrounding spaces or if the renderer name endswith the given string. If any of these are the case the hq normals workaround will be enabled.
2021-06-29Typo in function identifier: mutli -> multiHarley Acheson
Fixing small typo of word "multi" in function identifier by renaming "count_mutli_input_socket_links" to "count_multi_input_socket_links" Differential Revision: https://developer.blender.org/D11732 Reviewed by Hans Goudey
2021-06-29Cleanup: Use function name for allocation stringsHans Goudey
This is simpler, more consistent, and takes up less space.
2021-06-29LineArt Cleanup: Rename floating->looseYimingWu
see comment in https://developer.blender.org/rB841df831e89dfc4011c323203c2efb8265dc1878
2021-06-29Cleanup: use "use_" prefix for boolean typesCampbell Barton
2021-06-29Cleanup: translate commentsCampbell Barton
It wasn't so clear why the POINT_INIT check was disabled, move this into the code comment.
2021-06-29Curves: Avoid duplication of control points during evaluationHans Goudey
This commit avoids duplicating the deformed control point list twice by modifying the list in the object curve cache directly. For curves, the original control point data was duplicated into a local listbase, deformed, used to create the "bevel list" data, and then duplicated again for the object-level storage of deformed control points. Text objects and surface objects had a similar unnecessary duplication.
2021-06-29Cleanup: Avoid freeing curve evaluation data twiceHans Goudey
The curve bevel list was freed, and then freed again in a call to the function that recalulates it. The curve "anim path" data was freed only to be freed again in its calculation function as well. Also move the anim_path calculation directly after the bevel list creation to make its requirements more explicit.
2021-06-29Cleanup: Split curve and surface data evaluation functions, renameHans Goudey
Surface objects were already handled by an early return in the main "curve types" function. This commit splits them, renames the funtions to match (and be more consistent with other names), and sanitizes the checking of object types.
2021-06-29Cleanup: Order return arguments last, use r_ prefixHans Goudey
2021-06-29Cleanup: clang-tidyCampbell Barton
2021-06-29Cleanup: resolve discarded-qualifier warningCampbell Barton
2021-06-29Fix T89465: Loss of mouse movement when window left with pen.Nicholas Rishel
When a window is left with a WinPointer pen, the inrange check prevents resetting pen info.
2021-06-29Cleanup: Avoid ASAN report when converting displist to meshHans Goudey
Don't call `memcpy` with a null destination (and 0 size).
2021-06-28Cleanup: Replace paranoid check with assertHans Goudey
Every call to `BKE_displist_make_curveTypes` already checks the object type beforehand, there is no need to check it again. Also removed an outdated comment.
2021-06-28Cleanup: Remove unused "for_orco" argument to curve evaluationHans Goudey
`BKE_displist_make_curveTypes` had a `for_orco` argument that was always false in calls to the function. Removing it allows the curve displist and modifier evaluation code to become simpler. There are some related cleanups in rBdf4299465279 and rB93aecd2b8107.
2021-06-28Cleanup: Add function to create a CurveEval from a nurbs listHans Goudey
Sometimes the current spline list isn't part of the original curve, like when using the deformed control points, etc. This will be helpful in the curve modifier stack.
2021-06-28Curve: Add functions to retrieve const access to spline listHans Goudey
While the const correctness of `ListBase` is quite limited, it's helpful to have a way to retrieve the `Nurb` list from curve object data without casting away const from the curve.
2021-06-28Cleanup: Use const argumentsHans Goudey