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: replace inline loops with RNA_enum_from_identifierCampbell Barton
2021-02-05Cleanup: cmake indentation, white-spaceCampbell Barton
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-04LibOverride: Improve/Fix issues in override resync process.Bastien Montagne
When we have a local override, its linked reference may not be detected as needing to be overridden anymore. In that case, if there is no actual override defined by the user, assume that we can get rid of this local override as part of the resync process, and use the linked data directly instead.
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-04Animation: Add PreviewImage to bAction structSybren A. Stüvel
Make it possible to attach a preview image to an Action. In the #asset_browser_pose_libraries project, poses will be stored as individual Action datablocks. Having a thumbnail for each pose is of course essential. Reviewed By: mont29 Differential Revision: https://developer.blender.org/D10306
2021-02-04Geometry Nodes: new Is Viewport nodeJacques Lucke
This node outputs true when geometry nodes is currently evaluated for the viewport and false for final renders. Ref T85277. Differential Revision: https://developer.blender.org/D10302
2021-02-04Liboverride: clean-up/sanitize tagging of root overrides.Bastien Montagne
now do this in utils that also handle the hierarchy tagging, doing it in caller code is prone to errors. Issue reported by @sebbas, thanks.
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-04Fix: window manager can reference scenes and workspacesJacques Lucke
This also fixes T83592 for me. Differential Revision: https://developer.blender.org/D10046
2021-02-04Cleanup: replace '_imp' function suffix with '_impl'Campbell Barton
Use the more common abbreviation for `implementation`.
2021-02-04PyAPI: correct docstringCampbell Barton
2021-02-04UI: Win32 Child Windows On TopHarley Acheson
Win32 child windows on top of parents. Short-term solution of forcing is_dialog when owned. Differential Revision: https://developer.blender.org/D9971 Reviewed by Brecht Van Lommel
2021-02-04Presets: Cleanup preset namingNathan Craddock
Before committing D10224, bundled preset names that are lowercase need updating to title case for display in the UI. This changes several of the preset file names to title case, and fixes a couple of other naming issues in the preset names. A few strings in the code are also changed to reflect the new filename of the Blender keymap.
2021-02-04Merge branch 'blender-v2.92-release'Campbell Barton
2021-02-04Fix T85318: Driver variable don't resolve collection indicesCampbell Barton
The driver variable `splines[0]` (on a curve) behaved as if the path was `splines`. Resolve pointers was well as properties as it's supported by the caller. Error in original commit that added property support 82b0a9e36900c8aeb374078bd4cb3a7d7f8295e6.
2021-02-04Cleanup: unused function warningCampbell Barton
2021-02-04NLA: Fix nlasnapshot_blend() Misplaced Null CheckWayde Moss
From original commit: rB40b7929cc040
2021-02-04NLA: Extract nlasnapshot_blend()Wayde Moss
Refactor //nlastrip_evaluate_actionclip()// and //nlaeval_blend_value()// into //nlasnapshot_blend()//, //nlastrip_evaluate_actionclip()//, //nlasnapshot_from_action()//. **Motivations**: * {T83615} Requires reading all pose bone fcurves before being able to apply pre-blend transforms. The function //nlasnapshot_from_action()// achieves this. This effectively removed the need to specially handle Quaternion blend queuing so that code has been removed. * {D8296} Adds support for keyframe remapping through an upper stack of strips. Instead of introducing a variant of the form: //nlastrip_evaluate_actionclip_inverted_get_lower()//, //nlastrip_evaluate_actionclip()// will later be extended to take an `evaluation_mode` as input to avoid duplicating the recursion functions related to //nlastrip_evaluate()//. * //nlasnapshot_blend()// will eventually have variants of //nlasnapshot_blend_get_inverted_lower_snapshot()// and //nlasnapshot_blend_get_inverted_upper_snapshot()// which are all independent of NlaStrips and NlaTracks, further simplifying the blending implementation. Ideally, //nlastrip_evaluate()// would get renamed to //nlasnapshot_blend_strip()// but that'll be a later patch to avoid unnecessary patches slowing the review of more important patches. No User-side Functional changes Reviewed By: sybren, #animation_rigging Differential Revision: https://developer.blender.org/D10220
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-03macOS: Fix build error due to std::optional<T>::valueAnkit Meel
Added in rBc5514d3a2a03242ddc43f83be4bb72df7f85469f
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-03GL: Improve framebuffer error message by adding framebuffer nameClément Foucault
Framebuffer error can be hard to track. This makes it much easier to find the wrong framebuffer configuration.
2021-02-03Merge branch 'blender-v2.92-release'Philipp Oeser
2021-02-03Fix T85261: Eevee passes have slight inaccurate colorsPhilipp Oeser
In everything in `EEVEE_renderpasses_postprocess` (or the corresponding renderpass_postprocess_frag.glsl) colors get divided by a 'currentSample'. This 'currentSample' is always incremented in `EEVEE_temporal_sampling_draw` (and also one more time before we reach `EEVEE_renderpasses_postprocess`. This results in a "off-by-one", slightly inacurate colors and slight inaccurate transparency (in certain passes like AOVs). Now decrement the currentSample `EEVEE_renderpasses_postprocess` again by one to compensate. Maniphest Tasks: T85261 Differential Revision: https://developer.blender.org/D10286
2021-02-03Cryptomatte: Incorrect Coverage with VolumetricsJeroen Bakker
Related to {D10286}. When volumetrics are used in the scene the coverage is incorrect. The reason is that the current sample is 1 over the num samples that are calculated.
2021-02-03Cryptomatte: Incorrect Coverage with VolumetricsJeroen Bakker
Related to {D10286}. When volumetrics are used in the scene the coverage is incorrect. The reason is that the current sample is 1 over the num samples that are calculated.
2021-02-03Fix incorrect mesh selection duplication in internal utility functionJulian Eisel
`BKE_mesh_new_nomain_from_template_ex()` would duplicate the mesh selection storage of the destination mesh to the destination mesh. Since that mesh was default initialized at this point, the selection was `NULL`, so the duplication call is essentially a no-op. Mistake in 7efc75c7092b. Differential Revision: https://developer.blender.org/D10009 Reviewed by: Sybren Stüvel
2021-02-03UI: Improve tooltip for continuous grabJulian Eisel
Attempt to explain the feature better follow a better writing style.
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-03BPY: allow `bpy.data.libraries.load()` to filter out non-asset data-blocks.Bastien Montagne
Differential Revision: https://developer.blender.org/D10237
2021-02-03Merge branch 'blender-v2.92-release'Clément Foucault
2021-02-03Fix T85314 GPU: Drawlist submit data overflows.Clément Foucault
This was caused by an incorrect bound check. Since we now use different data type for indexed and non-indexed drawcalls, we need to check if the next drawcall is going to overflow the buffer.