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-03-24temp-sculpt-colors: fix data transfer modifierJoseph Eagar
2022-03-23temp-sculpt-colors:Joseph Eagar
* Updated reverse face colors to use color attribute api. * Updated rotate face colors to use color attribute api. * Fixed mask by color not redrawing. * Fixed duplicate mask by color keymap entry. * Change bunches of UI strings from "vertex color" to "color attribute." - But not in git submodules.
2022-03-22temp-sculpt-colors: Fix vertex paint color attributeJoseph Eagar
auto creation.
2022-03-22temp-sculpt-colors: Fix crash in redoing afterJoseph Eagar
undoing first stroke of paint brush.
2022-03-22temp-sculpt-colors: Fix smear brushJoseph Eagar
Smear brush now: * Walks two rings around vertices instead of one * Accumulates a single weighted average instead of blending individually. * Weights by how close vertices are to the desired smear distance, as well as their edge lengths (in the future edge length weighting will be replaced with either face areas or cotangent weights).
2022-03-22Merge branch 'master' into temp-sculpt-colorsJoseph Eagar
2022-03-22Fix pose-selection from menu not activating the objectCampbell Barton
Unlike the regression from T96663 selecting pose bones from menus never activated the object.
2022-03-22Fix T96663: Selecting a pose-bone doesn't activate the objectCampbell Barton
Regression in [0] that removed object selection changes while remaining in pose-mode. This unintentionally removed object activation. [0]: 859c062a2a3083f53d801fce4b722dcc52482e7e
2022-03-22Fix pose-bone menu selecting before activating the menuCampbell Barton
Regression in 1d88aeb95fc40771be7ef3a835af4206c845aa9b.
2022-03-22Cleanup: variable names for menu selectionCampbell Barton
- Rename baseCount to bone_count, was copy-pasted from object code. - Also rename baseCount to base_count for object selection, following snake case naming conventions. - Use int instead of short for counters, as there is no reason to use short ints.
2022-03-22Cleanup: add proper IMB_openexr.h instead of including file from intern/Brecht Van Lommel
2022-03-21Curves: new Add brushJacques Lucke
This adds a new Add brush for the new curves object type in sculpt mode. The brush is used to insert new curves (typically hair) on the surface object. Supported features: * Add single curve exactly at the cursor position when `Add Amount` is 1. * Front faces only. * Independent interpolate shape and interpolate length settings. * Smooth and flat shading affects curve shape interpolation. * Spherical and projection brush. This also adds the `surface_triangle_index` and `surface_triangle_coordinate` attributes. Those store information about what position on the surface each added curve is attached to: * `surface_triangle_index` (`int`): Index of the internal triangle that a curve is attached to. `-1` when the curve is not attached to the surface. * `surface_triangle_coordinate` (`float2`): First two numbers of a barycentric coordinate that reference a specific position within the triangle. Ref T96444. Differential Revision: https://developer.blender.org/D14340
2022-03-21UI: Use title case for labelsHans Goudey
2022-03-21Cleanup: move render image and multilayer EXR write code to image_save.ccBrecht Van Lommel
These share a lot of logic with regular image saving and should be unified more in the future.
2022-03-21Cleanup: add image_format.cc for functions related to ImageFormatDataBrecht Van Lommel
Also fixes missing code to read/write/free/copy color management settings in various places. This can't be set through the UI currently, but still should be handled consistently.
2022-03-21Fix T96255: Node socket fails to dragCampbell Barton
This is a general issue exposed by moving from tweak to click-drag events [0], however this bug would have existed for both click & click-drag events beforehand. Since [1] the following behavior could occur: - Click-drag the cursor away from the button. - Leaving the button would flag it as disabled. - The disabled button would then break causing the event to be considered handled. - Once handled no click / click-drag action would be tested. The bug would only happen if the cursor left the button before the drag threshold was reached which tended to happen with an UI-scale 2 or more. Or with an increased drag threshold. Revert [1] (fix for T78503), which is no longer needed since as of [2]. [0]: 4986f718482b061082936f1f6aa13929741093a2 [1]: 6f96dd85766a8159d5ffb761cbb4dbd20b7cad00 [2]: 87c13ac68c477486adecd8d548a016309fc2b54d
2022-03-20Fix T96470 new obj exporter writing material groupsAras Pranckevicius
This is patch D14349 from Aras Pranckevicius. The logic in the code was _completely different_ from the documentation and what the python exporter in 3.0 did. The new code assumed that "export material groups" meant "append material name to the object name", and was only ever kicking in when the "export object groups" option was also checked. But the proper behavior (as in 3.0 exporter & the online docs), is to emit g objectname_materialname before each usemtl line. Which is something entirely else.
2022-03-19Make Format ChangesHarley Acheson
Only formatting changes found by running "make format", no functional changes Committed without review, but with verbal approval by Hans Goudey
2022-03-19Fix T95257: Filter files on "name" and "relpath"Harley Acheson
When filtering File Browser items by name, use entry's "name" field as well as the "relpath" field since they can vary. See D13940 for details. Differential Revision: https://developer.blender.org/D13940 Reviewed by Bastien Montagne
2022-03-19BLI: move generic data structures to blenlibJacques Lucke
This is a follow up to rB2252bc6a5527cd7360d1ccfe7a2d1bc640a8dfa6.
2022-03-19Revert "Compositor: Support backdrop offset for the Viewer node"Brecht Van Lommel
This reverts commit 33409f9f1cd42e899f2706fe7878e5e89b50d617, as it breaks panning in the image editor. Fixes T96543
2022-03-18Cleanup: Move object_transform.c to C++Hans Goudey
Compilation and clang tidy fixes, use Vector instead of the macro-based C array system. Builds on all platforms on the buildbot.
2022-03-18Animation: Blend To Default ImplementationChristoph Lendenfeld
Add a new operator to the Graph Editor that blends selected keyframes to their default value. The operator can be accessed from Key>Slider Operators>Blend To Default Value Reviewed by: Sybren A. Stüvel Differential Revision: https://developer.blender.org/D9376 Ref: D9367
2022-03-18Cleanup: Compilation warningsSergey Sharybin
Mainly -Wset-but-unused-variable. Makes default compilation on macOS way less noisy. Differential Revision: https://developer.blender.org/D14357
2022-03-18BLI: move CPPType to blenlibJacques Lucke
For more detail about `CPPType`, see `BLI_cpp_type.hh` and D14367. Differential Revision: https://developer.blender.org/D14367
2022-03-18Cleanup: Remove unused functionSergey Sharybin
2022-03-18Fix resizing nodes not respecting the drag-startCampbell Barton
Resizing nodes used the cursor location when the event was triggered instead of the drag-start, harmless but means the drag location isn't under the cursor especially with a high drag threshold. Noticed when investigating other drag issues, unrelated to recent changes to drag behavior.
2022-03-18Cleanup: Remove unused includesHans Goudey
2022-03-17Fix keying-set selector brokenJulian Eisel
The menu for Timeline > Keying > Active Keying Set wouldn't show up. Caused by d8e3bcf770c2. The function to attach search menu data to the button would be called twice with different arguments for the same button now. Shouldn't be an issue in general, but the first call now had the unexpected side effect that the button would get disabled. Make sure it's re-enabled when the second call sets the proper search data now.
2022-03-17BLI: add probabilistic rounding utilityJacques Lucke
2022-03-17Hair: Sculpt Mode IconsDalai Felinto
From hair particle mode: * Add * Comb * Cut * Grow New: * Delete Only comb and delete are used at the moment (by the new tools which are under experimental).
2022-03-17Curves: separate sculpt brushes into separate filesJacques Lucke
This makes it easier to work on these brushes in parallel.
2022-03-17View 3D: scale object center selection penalty by the pixel sizeCampbell Barton
All screen-space UI thresholds should scale by the interface scale.
2022-03-17Fix unintended de-selection when selecting the object centerCampbell Barton
Selecting an object that was already active & selected would de-select it when the cursor was over the objects center. This was caused by [0] that added a check which assumed more than one hits from GPU_select meant there were multiple objects to select from. This is not necessarily the case since bones, camera tracks or the objects own center can add additional hits. Resolve by keeping track of the best hit with & without the active-selected object, only using the non-active-selected if it's found. [0] 1550573360241ef5be0839d2652e9e092f510b63
2022-03-17View 3D: the select operator now uses the cancel flag on failureCampbell Barton
Needed so mapping selection to click doesn't pass the click event through to setting the 3D cursor for e.g. While this doesn't happen with the default key-map, setting selection to LMB-click would set the 3D cursor as well (when the selection fell through to nothing).
2022-03-17View 3D: multi-object pose selection no longer de-selects objectsCampbell Barton
De-selecting objects meant that selecting a bone would de-select all the other pose objects - making exiting & entering pose-mode loose the current set of pose objects. Match edit-mode behavior: avoid de-selecting objects in the current mode (unless the action is explicitly performed in the outliner for e.g.).
2022-03-17Cleanup: simplify logic for skipping object selectionCampbell Barton
Previously setting the 'basact' to NULL was done, but this wasn't so simple to use with deselect_all which needs to check if there was anything found at the cursor. Add a 'handled' variable to differentiate this case, when set don't attempt object selection.
2022-03-17Cleanup: minor clarifications to comments & use const variablesCampbell Barton
2022-03-17Fix 3D view movie-clip track selectionCampbell Barton
While basic single track selection worked, toggling and de-selection has been broken since at least 2.83. Support SelectPick_Params with the exception of deselect_all which doesn't make sense for tracks as de-selecting all objects is expected in that case.
2022-03-17Cleanup: split movie clip track selection into it's own functionCampbell Barton
This was an involved operation to include inline, making ed_object_select_pick more difficult to follow. Prepare for track selection to properly support SelectPick_Params.
2022-03-17View 3D: support for select passthrough when picking selected itemsCampbell Barton
Currently this isn't used in the key-map, it will eventually allow the 3D viewports tweak tool to match the behavior of other editors that support tweaking a selection without first de-selecting all other elements.
2022-03-17Cleanup: spelling in commentsCampbell Barton
Use <pre>..</pre> for pseudo-code.
2022-03-17Compositor: Support backdrop offset for the Viewer nodeHabib Gahbiche
This is only part of the experimental "Full Frame" mode (disabled by default). See T88150. Currently the viewer node uses buffer paddings to display image offset in the backdrop as a temporal solution implemented for {D12466}. This solution is inefficient memory and performance-wise. Another issue is that the paddings are part the image when saved. This patch instead sets the offset in the Viewer node image as variables and makes the backdrop take it into account when drawing the image or any related gizmo. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D12750
2022-03-16Fix: Update icons for hair to curves renameHans Goudey
ddf189892c596d939 missed recreating the icons with the new names. This commit runs `make icons` and replaces the names in CMake.
2022-03-16Fix T96518: Gpencil Fill freezes when use invert and click inside areasAntonio Vazquez
When using inverted filling and click inside a closed area and not outside as is expected, the algorithm to detect the contour to fill is unable to find the filling shape and try to fill outside of the valid index. The infinite loop was adding more memory for each loop and the process continued while there was system resources and finally crashed the system. As the tool in negative mode is designed to fill all areas when you click outside of any shape, now the algorithm check if the outline is not working as expected and cancels the filling process.
2022-03-16Geometry Nodes: Remove legacy node codeHans Goudey
This commit removes the implementations of legacy nodes, their type definitions, and related code that becomes unused. Now that we have two releases that included the legacy nodes, there is not much reason to include them still. Removing the code means refactoring will be easier, and old code doesn't have to be tested and maintained. After this commit, the legacy nodes will be undefined in the UI, so 3.0 or 3.1 should be used to convert files to the fields system. The net change is 12184 lines removed! The tooltip for legacy nodes mentioned that we would remove them before 4.0, which was purposefully a bit vague to allow us this flexibility. In a poll in a devtalk post showed that the majority of people were okay with removing the nodes. https://devtalk.blender.org/t/geometry-nodes-backward-compatibility-poll/20199 Differential Revision: https://developer.blender.org/D14353
2022-03-16Fix T96512: Crash selecting an edgeCampbell Barton
Regression in 5e5285baf621.
2022-03-16Cleanup: Deprecated field access in outliner_duplicateSergey Sharybin
Solved by introducing introducing a variant of MEM_cnew which behaves as a copy-constructor for a trivial types. Alternative approach would be to surround DNA structs with clang/gcc diagnostics push/modify/pop so that implicitly defined constructors and copy operators are allowed to access deprecated fields. The downside of the DNA approach is that it will require some way to easily apply diagnostics modifications to many structs, which is not possible currently. The newly added MEM_cnew has other good usecases, so is easiest to use this route, at least for now. Differential Revision: https://developer.blender.org/D14356
2022-03-16Fix error with pose & deselect_all with 5e5285baf621a0c225cb5fc06fceCampbell Barton
2022-03-16Fix T96386: crash when changing shader to node group in propertiesJacques Lucke
The previous code updated the wrong node tree. The result was that the new group node did not have the socket that was supposed to be linked.