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-02-05Cleanup/refactor: Undosys: Get rid of the magic values for undo direction.Bastien Montagne
Move `eUndoStepDir` to `BKE_undo_system.h` and use its values everywhere. Note that this also introduce the `STEP_INVALID` value in that enum. Finally, kept the matching struct members in some lower-level readfile code as an `int` to avoid having to include `BKE_undo_system.h` in a lot of unrelated files.
2021-02-04Fix T85356: Dope Sheet not showing keyframes of Geometry Nodes graphSybren A. Stüvel
The animation filter wasn't following ID pointers to Node Trees yet.
2021-02-04LibOverride: Added log statements in liboverride operator functionsSebastián Barschkis
As discussed in D10301. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D10303
2021-02-04LibOverride: Only show relevant operators in outliner menuSebastián Barschkis
No need to show certain operators when they have no functionality. For example, when adding a library override from the outliner menu, there should only be an option to add one (i.e. reset, delete, resync operators not relevant for objects without library override). Reviewed By: mont29 Differential Revision: https://developer.blender.org/D10301
2021-02-04Merge branch 'blender-v2.92-release'Germano Cavalcante
2021-02-04Fix for 3D view transform: flipped rotation direction for numeric inputGermano Cavalcante
The rotation direction was flipped recently. This meant that rotation on a single axis gave negative results compared with previous Blender releases. This partially reverts a9b53daf23ba8b6cb4c930e06154ffd35522b00d. Differential Revision: https://developer.blender.org/D10299
2021-02-04Cleanup: pass keymap items as const where possibleCampbell Barton
2021-02-04Cleanup: replace '_imp' function suffix with '_impl'Campbell Barton
Use the more common abbreviation for `implementation`.
2021-02-04NLA: Fix Strip Truncate When Next to TransitionWayde Moss
**Problem**: Translating a strip will truncate it when next to a transition. **Solution**: The code only accounted for the prev/next strip for whether it exceeds. When it was a transition, the exceed logic fails. Now, we use the nearest non-transition strip instead. Reviewed By: sybren, #animation_rigging Differential Revision: https://developer.blender.org/D10083
2021-02-03Merge branch 'blender-v2.92-release'Pablo Dobarro
2021-02-03Fix T85230: Face Set Boundary automasking not working with dyntopoPablo Dobarro
Dyntopo does not have Face Sets implemented yet, so the entire mesh is considered a single Face Set. In that case, the check unique face set function should always return true. Reviewed By: JacquesLucke Maniphest Tasks: T85230 Differential Revision: https://developer.blender.org/D10259
2021-02-03Fix T85136: Sculpt geometry extract not using updated meshPablo Dobarro
This ensured that the sculpt mode deformation is flushed to the mesh datablock after leaving sculpt mode, so it can be duplicated and extracted correctly. Reviewed By: JacquesLucke Maniphest Tasks: T85136 Differential Revision: https://developer.blender.org/D10254
2021-02-03Fix T84370: Project tool not working with shape keysPablo Dobarro
A missing flush of the deformed PBVH coordinates to the shape key. Reviewed By: JacquesLucke Maniphest Tasks: T84370 Differential Revision: https://developer.blender.org/D10174
2021-02-03Fix memory leak in boundary brush preview dataPablo Dobarro
The edge preview data of the boundary needs to be freed with the boundary data created for the brush. Also, all data for the ScultpSession preview that is used to render the cursor needs to be freed with the ##SculptSession##. Found by Jacques Lucke Reviewed By: JacquesLucke Differential Revision: https://developer.blender.org/D10173
2021-02-03Cleanup: don't end description with dotJacques Lucke
2021-02-03Merge branch 'blender-v2.92-release'Germano Cavalcante
# Conflicts: # source/blender/editors/transform/transform_constraints.c
2021-02-03Fix unreported: Rotation Gizmo "C" influenced by custom orientationGermano Cavalcante
The white rotation Gizmo should always use the View orientation. Before, if you set an orientation for the gizmo other than the default, that gizmo would behave like the contraint Z Gizmo.
2021-02-03Fix T85340: Gizmo rotation inverted (in some perspective angles)Germano Cavalcante
This is an old bug (strange not to have been reported before). To define the direction of rotation, the View Vector is used. However, only the projection matrix was being considered, but in perspective mode, the position of the pivot also matters.
2021-02-03Cleanup: Move and rename 'getViewVector' utilityGermano Cavalcante
This function is only being used by the constraint code.
2021-02-03Fix 'getViewVector' returning inverted vectorGermano Cavalcante
Despite the wrong value, this change is harmless since the direction of the vector is not really required.
2021-02-03Geometry Nodes: Multi-Input SocketsFabian Schempp
Normally sockets only have one input link. This commit adds the back-end changes needed to use multiple input links per socket. Multi-input sockets can be defined with a new flag in `bNodeSocketType`. The changes necessary to make the sockets work in the geometry nodes evaluator are generalizing input socket values as a vector of values, and supporting this in the derived node tree structure. This patch should contain no functional changes. Two upcoming patches will use this system for the "Join Geometry" node and expose link picking and updated display in the UI: D10069 and D10181. Reviewed By: Jacques Lucke, Hans Goudey Differential Revision: https://developer.blender.org/D10067
2021-02-03Geometry Nodes: Add Collection Info NodeSebastian Parborg
Implements a node to get collection objects. These objects are then passed along as instances in the node tree. Follow up tasks: Multiple nodes does not support instancing yet: T85159 Changing collection offset does not trigger a refresh: T85274 Reviewed By: Jacques, Dalai, Hans Differential Revision: http://developer.blender.org/D10151
2021-02-03macOS: trackpad scroll direction reversed in list viewsYevgeny Makarov
The 'ui_pan_to_scroll' uses 'WM_event_absolute_delta_y'. For scrolling the List View we need to invert the direction to respect "natural scroll direction" system preferences. Differential Revision: https://developer.blender.org/D10291
2021-02-03BKE UndoSys refactor: deduplicate and simplify code, sanitize naming.Bastien Montagne
Now we only use 'undo' or 'redo' in function names when the direction is clear (and we assert about it). Otherwise, use 'load' instead. When passing an undo step to BKE functions, consider calling code has done its work and is actually passing the target step (i.e. the final step intended to be loaded), instead of assuming we have to load the step before/after it. Also deduplicate and simplify a lot of core undo code in BKE, now `BKE_undosys_step_load_data_ex` is the only place where all the complex logic of undo/redo loop (to handle several steps in a row) is placed. We also only use a single loop there, instead of the two existing ones in previous code. Note that here we consider that when we are loading the current active step, we are undoing. This makes sense in that doing so //may// undo some changes (ideally it should never do so), but should never, ever redo anything. `BKE_undosys_step_load_from_index` also gets heavily simplified, it's not basically a shallow wrapper around `BKE_undosys_step_load_from_index`. And some general update of variable names, commenting, etc. Part of T83806. Differential Revision: https://developer.blender.org/D10227
2021-02-02Fix T83064: Missing tooltips, caused by string property search buttonJulian Eisel
When a searchbox-button for string properties (e.g. to reference a vertex group) was created, and a value was set, the tooltip timer would constantly get cancelled. That was because the code to validate the current value (`ui_but_search_refresh()` - early exists for non-string properties) would call a helper function to update the search results (`ui_searchbox_update_fn()`), which always reset tooltips. Resetting them in the helper makes sense, for as long as the searchbox is open. But while it's not, and we just validate the current value, it shouldn't do this. This was also noticable in the output settings of dynamic paint, and probably a number of other cases (especially with script UIs which tend to use string properties more often). Likely caused by de53c039adb4.
2021-02-02Cleanup: Use bool instead of intJulian Eisel
2021-02-02Merge branch 'blender-v2.92-release'Philipp Oeser
2021-02-02Fix T85194: Smart UV does not respect "Correct Aspect" correctlyPhilipp Oeser
This lead to wrong, stretched UVs regardless of the ON/OFF state of "Correct Aspect" option (some code in the operator respected this setting properly, whereas it was hardcoded in another part). Before rB9296ba867462, `uvedit_pack_islands_multi` was always called with `correct_aspect` = false for the UnwrapOptions. After rB9296ba867462, `ED_uvedit_pack_islands_multi` was always called with `correct_aspect` = true for the UVPackIsland_Params. Both seem wrong [in that they do not take the operator setting into account]. Now respect that setting [same as the following `uv_map_clip_correct_multi` does as well btw.] Now results match 2.90 [where this was still python] perfectly. Maniphest Tasks: T85194 Differential Revision: https://developer.blender.org/D10246
2021-02-01Merge branch 'blender-v2.92-release'Falk David
2021-02-01Fix T85203: GPencil: Drawing on locked axis planeFalk David
Drawing on e.g. the X-Z plane was broken due to an earlier commit (rBef28da262342). This was causing the projection when drawing on an axis plane to fail. The fix checks that the user is in view plane projection mode. Reviewed By: antoniov Maniphest Tasks: T85203 Differential Revision: https://developer.blender.org/D10252
2021-02-01Fix T85229: Transform operator saving a different orientation than the ↵Germano Cavalcante
chosen one Some orientations are not possible to be calculated for certain scenes. In these cases, others are chosen and informed by the operator. However, the user may prefer that the chosen one be displayed (even if it is not actually used). This corresponds to older versions of Blender.
2021-02-01Fix T84780: Corrupt screen layout when loading file with area full-screenJulian Eisel
This could happen with files saved before ef4aa42ea4ff, so before global areas were written to .blend files. We would just always add the top- and status-bar, even though the screen wasn't supposed to have them. I'm not entirely sure what caused the further issues observed there, most code should probably handle the case fine still. But apparently something didn't. Steps to reproduce were: * Open Blender from before ef4aa42ea4ff (e.g 2.91 release) * In 3D View, View > Area > Toggle Fullscreen Area * Save the file * Open the saved file (can be in newer version too) The fullscreen is corrupt now, especially noticable after duplicating the workspace.
2021-01-31Fix T83092: Direction of rotation with View orientation changed in 2.91Germano Cavalcante
This solution replaces {rBf9e994d0f463}. That commit created an inverted orientation matrix but the 'Align to Transform Orientation' operator doesn't work well with inverted matrices. This new solution makes the rotate operator use the negative vector of the axis.
2021-01-31Revert "Fix T83092: Direction of rotation with View orientation changed in 2.91"Germano Cavalcante
This reverts commit f9e994d0f463abb87761591e30c47a9613be6cca. And fixes T85227. That commit created an inverted orientation matrix but the 'Align to Transform Orientation' operator doesn't work well with inverted matrices.
2021-01-31Fix error in recent commitGermano Cavalcante
Unused argument in rB216ebe0b7392d6
2021-01-31Revert "Cleanup: remove unused argument"Germano Cavalcante
This reverts commit 780857f8e8139613711cba041f5f0af9799804ec. The `axismtx` argument was supposed to be used.
2021-01-31Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-31Fix T85236: "Zoom to Mouse Position" inverts "Dolly View" directionCampbell Barton
2021-01-31Cleanup: use doxygen for transform_constraintsCampbell Barton
2021-01-31Merge branch 'blender-v2.92-release'Campbell Barton
2021-01-31Cleanup: remove unused argumentCampbell Barton
2021-01-31Cleanup: use switch for Add Object Tool event handlingCampbell Barton
2021-01-31Add Object Tool: make automatic axis selection an optionCampbell Barton
While useful in some cases, this meant it wasn't possible to use the "Floor" for object placement without looking top-down or bottom up.
2021-01-31Merge branch 'blender-v2.92-release'Nathan Craddock
2021-01-31Fix T79797: Compositor backdrop gizmo not updating after zoomNathan Craddock
The gizmo for the compositor backdrop image did not redraw when zooming in and out with the backimage_zoom operator. This adds the missing notifier.
2021-01-30Fix T83092: Direction of rotation with View orientation changed in 2.91Germano Cavalcante
This solution replaces {rBf9e994d0f463}. That commit created an inverted orientation matrix but the 'Align to Transform Orientation' operator doesn't work well with inverted matrices. This new solution makes the rotate operator use the negative vector of the axis.
2021-01-30Revert "Fix T83092: Direction of rotation with View orientation changed in 2.91"Germano Cavalcante
This reverts commit f9e994d0f463abb87761591e30c47a9613be6cca. And fixes T85227. That commit created an inverted orientation matrix but the 'Align to Transform Orientation' operator doesn't work well with inverted matrices.
2021-01-30Fix T85149: Wrong reroute position when adding with quick gestureGermano Cavalcante
In the operation of adding reroute node to the intersection with the gesture segment, each rerount was added to the middle of two points that are part of the segment. Now add the reroute point to the intersection position. Maniphest Tasks: T85149 Differential Revision: https://developer.blender.org/D10247
2021-01-29Merge branch 'blender-v2.92-release'Brecht Van Lommel
2021-01-29Fix T84717: missing 3D viewport updates when changing shading settingsBrecht Van Lommel
Previously this relied on the dependency graph to detect changes in the screen datablock, which would then notify the renderers. This was rather indirect an not even really by design. Instead use notifiers to tag specific 3D viewports to be updated. Includes changes to BKE_scene_get_depsgraph to accept a const Scene pointer. Testing if this works correctly requires adding back commits 81d444c and 088904d, since those have been temporarily reverted. Differential Revision: https://developer.blender.org/D10235