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-23Fix outliner/selection updates when selecting in the 3D viewCampbell Barton
The checks for calling outliner flushing didn't account for entering pose mode for the first time or that pose-bone selection can also change the object selection. Resolve by recording what changed and refresh accordingly. Also de-duplicate calls to DEG_id_tag_update.
2022-03-23Cleanup: various improvements to ed_object_select_pickCampbell Barton
- Document parameters. - Add code-comments. - Remove some historic/unhelpful code-comments. - Rename argument names that were ambiguous (object was a boolean for e.g.). - Move `gpu` picking into an allocated struct which is only allocated & used when using GPU picking. - Move variable declarations after menu picking has been handled.
2022-03-23Cleanup: spelling in commentsCampbell Barton
2022-03-22Fix minor error in last commit (4b35d6)Germano Cavalcante
If there is no active object, it is to be expected that we are in object mode as well.
2022-03-22Fix T96711: snap in edit mode for selected objects does not workGermano Cavalcante
Regression introduced in 52be06301257a82a1b4a5746e91ff60daa637ded The `SNAP_NOT_SELECTED` option should only consider base selected if we are in object mode.
2022-03-22Fix T96705: Crash when pressing F3 outside a Blender window if Developer extrasJulian Eisel
If the mouse is not hovering the window, there is no active region. This is a valid state, but the UI-list filter operator didn't account for that case.
2022-03-22Tiny visual fixes/tweaks for new library override buttons in OutlinerJulian Eisel
Tweaks: - Increase horizontal padding for the buttons from 1 point to 2, looked like an unintentional placement error before. Fixes: - Missing horizontal padding for array buttons - Small gap between separator line and right column when using a high interface scale - Properly center buttons vertically.
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
2022-03-22Cleanup: refactor passing of color management settings for image saveBrecht Van Lommel
Make a copy of ImageFormatData that contains the effective color management settings, and pass that along to the various functions. This will make it possible to add more complex logic later. For compositing nodes, passing along view and display settings through many functions made it harder to add additional settings, so just get those from the scene now. Differential Revision: https://developer.blender.org/D14401
2022-03-22Fix T96624: NLA crash when reordering tracks if no object is selected.Pratik Borhade
Caused by rBc0bd240ad0a1. To avoid crash, make boolean value false if active object data is NULL. Should be backported to 2.93 LTS and 3.1 corrective releases.
2022-03-22Cleanup: remove unused code from ed_object_select_pickCampbell Barton
- No need to store is_pose_mode, check the object_mode flag instead. - Remove redundant pose-mode check which now skips object selection. - Remove disabled grease pencil cursor toggling, since I couldn't manage to reproduce a situation where the cursor failed to update - also, as there are other places the active object can change this would need a more general solution anyway.
2022-03-22Cleanup: refactor 3D view selection picking to early exit for menusCampbell Barton
Selecting that opens a menu is now returns early. Handling the menu selection in-line made this function more difficult to follow. Also split out selecting an object by it's center into it's own function.
2022-03-22Cleanup: de-duplicate object-mode locking when selectingCampbell Barton
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