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-04-05Merge remote-tracking branch 'origin/master' into temp-sculpt-colorstemp-sculpt-colorsJoseph Eagar
2022-04-05temp-sculpt-colors: a few more minor changesJoseph Eagar
2022-04-05Curves: Port legacy curve viewport drawing to the new data-blockHans Goudey
Instead of using `CurveEval` to draw the curve wire edges, use the new `Curves` data-block, which is already built as part of an object's evaluated geometry set whenever there is a `CurveComponent`. This means that we can remove `Curve`'s temporary ownership of `CurveEval` for drawing (added in 9ec12c26f16ea3da1e), which caused a memory leak as described in T96498. In my testing this improved performance by around 1.5x during viewport playback, back to the performance of 3.1 before the curve data structure transition started. The next step of using the GPU to do the final curve evaluation for the viewport is described in T96455, but is unrelated. Differential Revision: https://developer.blender.org/D14551
2022-04-05Refactor: Evaluate surface objects as mesh componentsHans Goudey
This commit furthers some of the changes that were started in rBb9febb54a492 and subsequent commits by changing the way surface objects are presented to render engines and other users of evaluated objects in the same way. Instead of presenting evaluated surface objects as an `OB_SURF` object with an evaluated mesh, `OB_SURF` objects can now have an evaluated geometry set, which uses the same system as other object types to deal with multi-type evaluated data. This clarification makes it more obvious that lots of code that dealt with the `DispList` type isn't used. It wasn't before either, now it's just *by design*. Over 1100 lines can be removed. The legacy curve draw cache code is much simpler now too. The idea behind the further removal of `DispList` is that it's better to focus optimization efforts on a single mesh data structure. One expected functional change is that the evaluated mesh from surface objects can now be used in geometry nodes with the object info node. Cycles and the OBJ IO tests had to be tweaked to avoid using evaluated surface objects instead of the newly exposed mesh objects. Differential Revision: https://developer.blender.org/D14550
2022-04-05Cycles: Fix a few type casting warningsPatrick Mours
Stumbled over the `integrate_surface_volume_only_bounce` kernel function not returning the right type. The others too showed up as warnings when building Cycles as a standalone which didn't have those warnings disabled. Differential Revision: https://developer.blender.org/D14558
2022-04-05Cycles: Use USD dependencies when building Hydra render delegatePatrick Mours
Adds support for linking with some of the dependencies of a USD build instead of the precompiled libraries from Blender, specifically OpenSubdiv, OpenVDB and TBB. Other dependencies keep using the precompiled libraries from Blender, since they are linked statically anyway so it does't matter as much. Plus they have interdependencies that are difficult to resolve when only using selected libraries from the USD build and can't simply assume that USD was built with all of them. This patch also makes building the Hydra render delegate via the standalone repository work and fixes various small issues I ran into in general on Windows (e.g. the use of both fixed paths and `find_package` did not seem to work correctly). Building both the standalone Cycles application and the Hydra render delegate at the same time is supported now as well (the paths in the USD plugin JSON file are updated accordingly). All that needs to be done now to build is to specify a `PXR_ROOT` or `USD_ROOT` CMake variable pointing to the USD installation, everything else is taken care of automatically (CMake targets are loaded from the `pxrTargets.cmake` of USD and linked into the render delegate and OpenSubdiv, OpenVDB and TBB are replaced with those from USD when they exist). Differential Revision: https://developer.blender.org/D14523
2022-04-05Curves: new Grow/Shrink brushJacques Lucke
This adds a new Grow/Shrink brush which is similar to the Length brush in the old hair system. * It's possible to switch between growing and shrinking by hold down ctrl and/or by changing the direction enum. * 3d brush is supported. * Different brush falloffs are supported. * Supports scaling curves uniformly or shrinking/extrapolating them. Extrapolation is linear only in this patch. * A minimum length settings helps to avoid creating zero-sized curves. Differential Revision: https://developer.blender.org/D14474
2022-04-05Preferences: enable Duplicate Data for curves and point cloud objectsJacques Lucke
Those geometry types are expected to behave the same as e.g. mesh with respect to data copying. The fact that this was not enabled already was an oversight in the initial commit that added these types. Differential Revision: https://developer.blender.org/D14554
2022-04-05Fix T97010 GPencil: Artifacts on Grease PencilClément Foucault
Was caused by wrong name for uniform update. Regression introduced in rBeccb0b222e34
2022-04-05Fix T97071: Duplicating strip in locked channel creates overlapping stripsRichard Antalik
Add flag `SEQ_IGNORE_CHANNEL_LOCK` to indicate, that channel lock should not apply to strip. This flag must be cleared after transformation.
2022-04-05Cleanup: Change globalBlock members to snake caseClément Foucault
This avoid conflicting defines in GLSL Fix T96998 Blender 3.2.0 Alpha crashes on startup
2022-04-05Cleanup: Overlays: Remove unused facefill shaderClément Foucault
2022-04-05Fix T97003: color-management settings can't be animatedCampbell Barton
Regression in [0] which missed excluding FRAME_CHANGE from deg_recalc_flags_for_legacy_zero causing all DEG_id_tag_update(&scene->id, 0) calls to re-calculate animation data. When this tagging was done in the RNA update function, changing key-framed values in the UI would be immediate reset to their keyed-values. Thanks to Philipp Oeser for finding the root cause. [0]: 35aedd87e78d44aa0a622d26261ecac7ece12925
2022-04-05Fix T96424: Don't register undo step for empty knife cutPratik Borhade
Prevents undo push when no cut has been made. Reviewed By: campbellbarton Ref D14329
2022-04-05WM: avoid unnecessary undo step creation when duplicatingPratik Borhade
Calling duplicate operation without selecting anything registers an undo step. If nothing is selected (keyframe, curve, object, etc.), cancel the operator execution to prevent undo push. Patch improves following operators: - ACTION_OT_duplicate - GPENCIL_OT_duplicate - GRAPH_OT_duplicate - MESH_OT_duplicate - NODE_OT_duplicate - OBJECT_OT_duplicate Reviewed By: campbellbarton Ref D14511
2022-04-05Fix: wrong operator return valueJacques Lucke
2022-04-05Fix T96745: UI: Change "Inverts" to "Invert" for selection toolAlaska
This is to improve grammatical consistency with other selection options. Maniphest Tasks: T96745 Differential Revision: https://developer.blender.org/D14444
2022-04-05Gizmos: enable gizmos for the action spaceYann Lanthony
Support gizmos for the the action space type based on how it is done for other types of spaces in Blender (e.g: view3d, image). See patch submission for sample code. Reviewed By: campbellbarton, sybren Ref D13999
2022-04-05Cleanup: avoid unnecessary undo steps for curves & simplify codeCampbell Barton
Some edit-curve operators used an 'ok' variable to represent if the selection was found and if a change was made. Previously it would only return cancel if an error was shown causing a redundant undo step to be added without a selection. Since this is simple behavior that shouldn't need much explanation, use two variables with meaningful names to avoid confusion. Reviewing D14511 highlighted this issue.
2022-04-05Keymap: use "use_tweak_select_passthrough" preference for tweak toolCampbell Barton
This experimental preference was not making much difference with selection set to left-mouse for the 3D view and UV editor. Now dragging the existing selection is possible when this preference is enabled.
2022-04-05Fix keymap "use_tweak_tool_lmb_interaction" blocking sequencer scrubCampbell Barton
Ignore this experimental preference for the sequencer.
2022-04-05Fix T96885: drag fallback on tweak is using active tool insteadCampbell Barton
Ensure the fallback transforms on drag when used as a fallback.
2022-04-05Fix T97032: Tweak Select preference causes selection issuesCampbell Barton
Disable select-passthrough on release events.
2022-04-05Keymap: remove reference to missing view2d_edge_pan propertyCampbell Barton
This was added [0] but the property is missing in the operator. [0]: e49fef45cef7d53ae856a943e125838cdfcea0a0
2022-04-05Fix: Assert fails when evaluating single point Bezier curveHans Goudey
Return early when there is only one point, since that means there are no segments.
2022-04-05Sequencer: skip redundant F-curve GSet allocationCampbell Barton
2022-04-05Fix memory leak duplicating sequencer stripsCampbell Barton
Regression in [0] also skip creating a GSet when there are no F-curves. [0]: e74420124f3a429ad8a1492e56a7e1561d86d6f7
2022-04-05Fix T97034: tweak strips uses cursor position after threshold reachedCampbell Barton
2022-04-05UI: move "use_select_nearest_on_first_click" into it's own panelCampbell Barton
Add a new panel called "Tweaks" so we can get feedback from users about minor tweaks to behavior as exposing these minor changes. Currently this only has a single item in it, however we may want to get feedback from users about small changes in the future so I'd prefer to have a place to list these kinds of options. Ref D14542
2022-04-05Cleanup: use doxygen links to struct membersCampbell Barton
2022-04-05Cleanup: clang-formatCampbell Barton
Also add space below file references.
2022-04-05Cleanup: move doc-strings into headersCampbell Barton
- The comment for create_normals was moved into an inline note as it's not related to the public API. - Use a colon after parameters. Ref T92709
2022-04-05Cleanup: spelling in commentsCampbell Barton
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-04Fix T95678: Thumbnails are not working with big / large ObjectsGermano Cavalcante
The internal camera used to render the thumbnails also has to consider `clip_start` and `clip_end`. Reviewed By: Severin Maniphest Tasks: T95678 Differential Revision: https://developer.blender.org/D14138
2022-04-04temp-sculpt-colors: fix comment formatting.Joseph Eagar
2022-04-04Merge remote-tracking branch 'origin/master' into temp-sculpt-colorsJoseph Eagar
2022-04-04Fix collection assets hidden in old files with asset browser openJulian Eisel
Make sure the filtering in the Asset Browser doesn't filter out collection assets.
2022-04-04temp-sculpt-colors: make requested changesJoseph Eagar
* BKE_id_attribute_copy_domains_temp: - ID argument is now an explicit output parameter, r_id. - Takes ID type explicitly and sets id->name's type code. * Rotate/reverse color bmops now take an index into the color attribute list instead of an Object pointer.
2022-04-04Cleanup: Remove unused functionHans Goudey
Unused after 943b919fe807
2022-04-04Cleanup: Move interface.c to C++Hans Goudey
This is similar to 4537eb0c3b1678a62
2022-04-04Fix T96999: RNA mesh transform does not mark normals dirtyHans Goudey
2022-04-04Fix overlapping GPU device bitmasksBrecht Van Lommel
This did not end up affecting actual behavior, but it is wrong. Found by Ethan Hall. Ref D14525
2022-04-04OBJ: fix printf specifier compile warning on some compilersAras Pranckevicius
2022-04-04Fix errors in sequencer channel headersRichard Antalik
Failing constraint test uncovered crashes on NULL dereference and missing channels initialization in `SEQ_editing_ensure()`.
2022-04-04Fix T96838: Missing translations in link drag searchHans Goudey
2022-04-04Pose library: add deprecation noticesSybren A. Stüvel
The legacy Pose Library operators now refer to the "Legacy Pose Library", and their description mentions they are deprecated and will be removed from Blender 3.3. The same was added to the `Object.pose_library` RNA property. Ref: T93405 The removal of these deprecated properties is tracked in T93406.
2022-04-04Pose library: remove much of old pose library interfaceSybren A. Stüvel
Remove much of the old legacy pose library: - Remove from the Pose & Armature menus. - Remove from the default keymap. - Pose Library panel in Armature properties: Add "(legacy)" to title. - Add note that the functionality of that panel is obsolete, with a button that opens the manual on the chapter of the new pose library. - Add button to convert the selected legacy pose library to pose assets. - The rest of the functionality is greyed out to further communicate it's been deprecated. It's still functional, though. Ref: T93405
2022-04-04Fix T96575: Can't set vertex theme colorRichard Antalik
UV editor used wire color for drawing unselected vertices. Add color variable to shader, so theme color can be used. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D14373
2022-04-04VSE: Use edge panningRichard Antalik
Add edge panning feature to transform operator. It works in same way as in node editor, but Y axis is limited by usable range up to 128 channels. Reviewed By: Severin Differential Revision: https://developer.blender.org/D14310