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
path: root/source
AgeCommit message (Collapse)Author
2021-04-23macOS: Fix unknown -Wsuggest-override warningAnkit Meel
Added in rB7cef01b090c4c2d2703274edb91886ae37d3ce82 and rB87bfa2b207b90b5e34ebd835a23c2a82afbed878 Reviewed by: jbakker, #platform_macos Differential Revision: https://developer.blender.org/D11012
2021-04-23Fix T87749 (partially): Text jitter in buttons and spreadsheet editorLeon Leno
This patch fixes jittering text when resizing regions of the UI as described in T87749. The jitter was caused by the text padding being stored as an integer which lead to inconsistent rounding. Most notably this patch fixes the jitter in the new spreadsheet editor, but not all occurrences of jitter described in T87749 (e.g. in UI lists) are addressed. Differential Revision: https://developer.blender.org/D11060
2021-04-23Fix bug/crash in ID bulk deletion code.Bastien Montagne
This is complex situation. Tagged ID deletion (used to delete several data-blocks at once) removes IDs to be deleted from Main. But when we remove deleted IDs' usages of other IDs (using `BKE_libblock_relink_ex`), some specific post-process is required on some types, like Collections. Those post-processes would in some cases rely on data actually being in Main. That failing condition would lead in existing code on missing processing the very ID (collection) we were working on, leading to missing removing some child collection pointers, leading to the crash (later on in LayerCollection resync process). For now we go with an optimization & fix that avoids processing all collections in Main when we actually know which one we are working one (case of `BKE_libblock_relink_ex`, but not of `BKE_libblock_remap_locked`). This is however yet another demonstration of the need to rework that whole collection/layer resync process, since it is not only extremely inneficient currently, but it also requires valid Main/ID state way too deep into the remapping code. NOTE: This fix may very well not catch/address all possible fail cases here, dealing with the double parent/child relationships of collections is challenging... Issue reported by @eyecandy from the studio, thanks.
2021-04-23Fix T87582: incorrect interpolation from edge to corner domainJacques Lucke
2021-04-23Fix T78845: Eevee wrong material selection.Jeroen Bakker
In cases where the same node tree is used in different materials with small changes, the wrong material could be selected. Cause: Hair shaders GPU resources weren't updated and used the previous bound data. Reviewed By: fclem Differential Revision: https://developer.blender.org/D11036
2021-04-23Fix T86765: Custom properties are included in `__dir__`Campbell Barton
Remove custom properties from `__dir__` method result since these can't be accessed using `__getattr__`. Introduced in the 2.5x Python API update.
2021-04-23Fix for building with MSVCCampbell Barton
2021-04-23Fix T86170: Memory leak clearing the Python instance for COW id dataCampbell Barton
As Python can access COW ID's, ensure it's instance is kept on update. This could happen when the "Use Self" argument was enabled for a driver.
2021-04-23Cleanup: quiet clang-tidy warningCampbell Barton
2021-04-22Fix T87701: debug assert generating scene preview renderBrecht Van Lommel
2021-04-22Fix missing includeGermano Cavalcante
2021-04-22Fix T87615: No snapping to objects instanced by Geometry nodesGermano Cavalcante
The code of the snapping system to interact the objects in the scene only considers instances what comes from "DUPLI" objects. This commit adds instances coming from Geometry nodes. Differential Revision: https://developer.blender.org/D11020
2021-04-22Fix T87090: VSE scrubbing locks up blenderRichard Antalik
Speed effect caused, that some raw frames are re-used for multiple final frames. When cached final frame is freed due to memory being full, it tried to free also lower level cached frames that were used during compositing. Some lower level cached frames were already freed by different final frame and `BLI_ghash_remove()` failed. Check if key still exists in hash or if linked keys were overwritten before removing them. Reviewed By: sergey Differential Revision: https://developer.blender.org/D10909
2021-04-22Fix: geometry nodes logs incorrect preview dataJacques Lucke
Under some circumstances, modifiers are evaluated more than once. One time to compute the actual output geometry and another time with `MOD_APPLY_ORCO`. This design probably has to be revisited at some point in the context of geometry nodes. However, that would be much more involved than a bug fix. The issue was that during the second evaluation, the node tree is evaluated based on a slightly different input geometry. The data generated during the second evaluation overwrote the cached data from the first evaluation, resulting in incorrect data that is shown in the spreadsheet. The fix for now is to simply not log any data in the second evaluation.
2021-04-22Fix T85051: Add bisect distance as a parameter to the mirror modifierFalk David
The `bisect_distance` in the mirror modifier was hard-coded to `0.001`. This would result in some unexpected behavior like vertices close to the mirror plane being deleted or merged. The fix now adds a parameter to the mirror modifier to expose the bisect distance to the user. The default is set to the previous hard-coded value to not "change" previous files. Ref D10201
2021-04-22VSE: Fix movies are reloaded after invalidationRichard Antalik
When cache is strip is invalidated, movie file was reloaded even if it isn't necessary. This caused significant performance issues when strip is being dragged under playhead. This was caused by calling `SEQ_relations_sequence_free_anim()` and it was introduced as fix for T36124. When it is necessary to reload file because another API holds reference to ImBuf, do this explicitly besides cache invalidation. In `rna_ColorManagedColorspaceSettings_reload_update()` this was already done, so no change is needed there. Reviewed By: sergey Differential Revision: https://developer.blender.org/D11024
2021-04-22Fix T87337: Text strip draws white outlineRichard Antalik
Math for drawing font over byte buffer was incorrect. Effect can be seen when target buffer is fully black and transparent - this results in font color being effectively premultiplied, which causes problems when image is composited further. Use `blend_color_mix_byte()` and `blend_color_mix_float()` for blending. Reviewed By: sergey Differential Revision: https://developer.blender.org/D11035
2021-04-22Fix T86682: Scene strip DOF not evaluated correctlyRichard Antalik
Camera object used for rendering reffered to original not evaluated data. Use `DEG_get_evaluated_object()` to get evaluated camera. Reviewed By: sergey Differential Revision: https://developer.blender.org/D11039
2021-04-21Fix wrong flag for 'GPUFrameBuffer.viewport_get'Germano Cavalcante
`GPUFrameBuffer.viewport_get` has no args.
2021-04-21Fix T87659: crash when creating reroute loop in geometry nodesJacques Lucke
This was a regression introduced in rB0ff3f96a1b0193d69dae5ca69e7c93d6cdf34558.
2021-04-21Fix T87677: Add primitive tools produce wrong sized objects after changing ↵Philipp Oeser
values in 'Adjust Last Operation' Always use the defaults here (radius, depth etc), since desired bounds have been set interactively, it does not make sense to use a different value from a previous command. The Cube tool has already seen a fix for this in rB26e5718e29a7, but Cone/UVSphere/Cylinder/IcoSphere havent. Maniphest Tasks: T87677 Differential Revision: https://developer.blender.org/D11038
2021-04-21Fix T87640: Grease Pencil layer visibility/locking not synchronized from ↵Philipp Oeser
Dope Sheet to Properties Properties Editor is a bit more picky (compared to the Outliner for example) when it comes to listening to grease pencil notifiers -- it requires the action to be set. So when adding the notifier in the dopesheet from the channels (done in `achannel_setting_flush_widget_cb`), now add the `NA_EDITED` action. Maniphest Tasks: T87640 Differential Revision: https://developer.blender.org/D11025
2021-04-21Curve modifiers: Disable 'Apply on Spline' option if not availablePhilipp Oeser
Some curve modifiers (namely Hook, SoftBody and MeshDeform) can only work on pre-tesselated spline points. Before the modifier UI refactor in rB9b099c86123f, users would get the 'Apply on Spline' option, but disabled and with a tip explaining why this cant be changed. After rB9b099c86123f though, this button was always enabled [but disfunctional] leaving the user without an explanation why this has no effect. Now restore this functionality since it is quite important information. Additionally, this button now appears to be ON in these cases which makes more sense from the user perspective (so it does not represent the actual setting on the modifier -- this would internally be switched ON in the modifier calculation anyways though, see 'curve_get_tessellate_point') Differential Revision: https://developer.blender.org/D11029
2021-04-21Fix T87562: Keymap preferences from 2.92x ignoredCampbell Barton
Renaming presets in 01d49d1542cee0da2a7629443f9534bc5cec5a55 caused them to be treated as separate key-maps.
2021-04-21BLI_string: add a utility to replace strings using a tableCampbell Barton
Useful to simplify versioning code when identifiers need updating in multiple places.
2021-04-21Fix logging "bke.appdir" messagesCampbell Barton
Logging was initialized after BKE_appdir paths were initialized, making it impossible to see paths which are checked on startup.
2021-04-20Fix T87440 EEVEE: Specular Light Viewport Render Pass wrong behaviorClément Foucault
This was caused by the closure refactor. The radiance being masked for SSR, we need to not enable SSR when trying to render the specular color pass. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D11028
2021-04-20EEVEE: Fix unreported memory leak when toggling AO on/offClément Foucault
The `filtered_radiance` is not a texture form the texture pool. It needs manual freeing if not used.
2021-04-20Fix T86871: Crash with to_mesh() on tapered bezier curveCampbell Barton
2021-04-20Fix T87369 EEVEE: Ambient Oclussion: Firefly caused by degenerated normalClément Foucault
This was caused by some sort of degenerated normals.
2021-04-20Geometry Nodes: skip attribute conversion if src and dst are the sameJacques Lucke
2021-04-20Fix T87541 EEVEE: AO causes black outline around objects and NaN pixelsClément Foucault
It seems the pow result is unstable on some implementations. Also avoid undefined behavior by clamping aoFactor to strict positive values.
2021-04-20Fix T86809: Action Editor header not display the right action in certain ↵Philipp Oeser
scenarios If a new action is created (e.g. by inserting keyframes), the header was not garuanteed to display the right action. Notifiers were fine here, redraw took place, the editors action was just not set soon enough for the drawing. Now make sure this is set correctly by ensuring the animation context is right (same as the other editor regions do before drawing). Maniphest Tasks: T86809 Differential Revision: https://developer.blender.org/D10796
2021-04-20Fix T87055: Crash applying modifier on mesh with multires dataCampbell Barton
2021-04-19Fix crash with Alembic export after recent persistent data bugfixBrecht Van Lommel
We weren't clearing the recalc flags for that case.
2021-04-19Fix T87535, T87295: issues with new persistent data optionBrecht Van Lommel
Some persistent data code was disable due to a deeper design issue, which meant some updates were not communicated to renderers. Dependency graph updates work in two passes, once where Blender scene animation updates are done, then app handler scripts can run to make further scene modifications, and then the depsgraph is updated again to take those into account. Previously the viewport would update renderers twice when such app handler scripts were present. Now both viewport and persistent data rendering update the renderers only once, accumulating updates from both passes.
2021-04-19Fix T87567: Crash adding item in empty attribute searchHans Goudey
The function applying the search used the dummy search info for when the item doesn't exist even when there was no UI data associated with the node at all. A fix is to only add the search menu when there is attribute info stored for the node. This is something I wanted to do anyway, since it makes it look more purposeful when there are no attribute info for a node, less like a bug. Differential Revision: https://developer.blender.org/D11016
2021-04-19Fix T85223: Some modifier panels can dissapear in old filesHans Goudey
The problem is that each uiBlock needs to be assigned a unique name, but when there can be multiple modifiers of the same type, we use the panel sort order for the unique part of the string. However, the most recent test file has 1200+ panels in the property editor, so 4 characters isn't enough for a unique string. That's not a situation I expected, but it makes sense, because we don't remove legacy panels with unused types when loading old files. So they tend to accumulate a bunch of unused panels. That's why this works fine with a new property editor, it doesn't all of the extra old panels. These panels must be stored for the expansion status and order, but arguably we could cull unused panels on save. However, simply increasing the length of the unique panel string is a valid fix in this situation. In the future, we can look into removing unused panels when saving.
2021-04-19Fix T87392: Copy modifier to selected does not do anythingHans Goudey
This was caused by a stupid copy & paste error in rB9f323e9bf79fbf4157a.
2021-04-19Fix creating operator properties without an owner_idCampbell Barton
Any dynamic enum access would not use the callback. Always set the owner_id to avoid this causing problems. Oversight in 919558854d624f5db40acfa9f5674ac8c94873b6
2021-04-19Fix incorrect compositor denoise node message about SSE on macOS ArmBrecht Van Lommel
Ref T78710
2021-04-19Fix drag event leaving the gizmo not under the cursor highlightedCampbell Barton
Prevent drag events from changing the highlighted gizmo unless the drag event activates the gizmo. This resolves a glitch where testing a drag event would highlight at the point the drag was initiated even when the event was not handled.
2021-04-19Cleanup: re-order gizmo handling checksCampbell Barton
Non-functional change in preparation for fix.
2021-04-19Fix spin-gizmo not allowing click events to select verticesCampbell Barton
2021-04-19Fix spin-gizmo button tool-tip placementCampbell Barton
gizmo_button2d_bounds result wasn't valid when the gizmo was part of a 3D gizmo group. Regression in cf6d17a6aa421e0038fc1f8e60e3f1f708887c3e
2021-04-19Fix snap mixed with vertices ignored for meshes with vertices onlyGermano Cavalcante
The logic assumed that there were only 3 basic snapping modes.
2021-04-18Fix compile warningHans Goudey
The order of the two parameters was incorrect.
2021-04-17Fix memory leak in the BLI_bitmap created in 'looptri_no_hidden_map_get'Germano Cavalcante
2021-04-17Fix T86805 Inconsistent results for exact boolean.Howard Trickey
The fast triangulator from Blenlib could leave a non-manifold mesh after removing degenerate triangles. Switched to an exact triangulator.
2021-04-17Cleanup: quiet compiler warning on macosJacques Lucke