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-01-25Bump version to 3.0.1 releasev3.0.1blender-v3.0-releasePhilipp Oeser
2022-01-24Mesh: Add versioning in 3.0 for vertex normal refactorHans Goudey
This tags all meshes from the future 3.1 version dirty, since normals aren't "implicitly" read as part of `MVert` anymore after rBcfa53e0fbeed7178. Differential Revision: https://developer.blender.org/D13856
2022-01-20Fix T94202: GPUFrameBuffer: wrong refcount in the buffer passed for ↵Germano Cavalcante
read_color and read_depth The buffer passed as an argument to `GPUFrameBuffer.read_color` is used in the return of the function and therefore, if not used, its refcount is decremented. So be sure to increment the refcount of the already existing objects that will be used in the return of a function.
2022-01-20Cleanup: Avoid possible NULL pointer errorAntonio Vazquez
In normal conditions, `gpf` always has a value, but better move inside the NULL checking.
2022-01-20Fix T94197: Applying boolean with fast solver clears bevel weightsCampbell Barton
For boolean operations only one of the meshes was checked to determine if bevel weights should be created. Now initialize custom data from both meshes flag. Note that this is a localized fix to be back-ported, further changes will be made so edit-mode conversion accounts for this without the caller needing explicit checks for custom-data flags.
2022-01-20Fix T94715: multiple volumes using the same .vdb causes freezeBrecht Van Lommel
Needs more TBB task isolation, as even freeing an OpenVDB grid uses multithreading.
2022-01-17Fix T94768: Crash in VSE prefetchingRichard Antalik
Only the fix part of rBf2fb9a0c59a applied (P2726).
2022-01-17Fix T94827: Group Input/Output cannot connect to custom socketsPhilipp Oeser
Caused by rBa5c59fb90ef9. Since Group Input and Output sockets happen to be of type `SOCK_CUSTOM` [and since rBa5c59fb90ef9 custom py defined sockets are too :)] a check introduced in rB513066e8ad6f that prevents connections for `SOCK_CUSTOM` triggered. Now refine the check, so it specifically looks for NODE_GROUP_INPUT / NODE_GROUP_OUTPUT, too (this keeps the intention intact to not connect group inputs to group outputs and vice versa, but allows custom py defined sockets to connect again) and put it in new utility function. Maniphest Tasks: T94827 Differential Revision: https://developer.blender.org/D13817
2022-01-17Fix T94878: LineArt crease threshold logic error.YimingWu
A coding mistake allows default crease to override object crease, now fixed.
2022-01-17Fix T94089: GPencil Drawing don't Update after paste in DopesheetAntonio Vazquez
When paste new frames, the datablock need to be tagged to update the drawings.
2022-01-17Fix T94903: GPencil: Copying keys doesn't preserve Keyframe TypeAntonio Vazquez
When a new frame is created, ensure the keytype of source key is used.
2022-01-17Fix crash caused by exception in Python gizmo target get handlerCampbell Barton
2022-01-17Fix T94624: Object as font instances don't workHans Goudey
The fundamental limitation is that we can only have one instance ("dupli") generator at a time. Because the mesh output of a curve object is output as an instances, the geometry set instances existed, replacing the object as font instances. The "fix" is to reverse the order. The behavior won't be perfect still, but at least the old behavior will be preserved, which is really what matters for a feature like this. One way to take this change further would be completely disabling regular geometry evaluation while this option is active. However, it doesn't seem like that would actually improve the state of the code. Differential Revision: https://developer.blender.org/D13768
2022-01-17Fix T94799: GPencil Strokes drawn at 0.0 Strength still visibleAntonio Vazquez
There was a clamp with a value greater than 0.
2022-01-12Fix T94728: Auto Depth problem with Cliping RegionGermano Cavalcante
Issue introduced in rB1d49293b80446b89b5b12fa0eeefaf14e5051e48 `drw_manager_init` must be called after `drw_context_state_init` as `DST.draw_ctx.sh_cfg` (indicating when the view is clipped) must be set first. Differential Revision: https://developer.blender.org/D13795
2022-01-12Cleanup: remove unnecessary 'use_opengl_context' parameterGermano Cavalcante
The argument passed is always false.
2022-01-11Fix T93477: Viewport X-Ray is influencing snapping even in material modeGermano Cavalcante
The default snap behavior to perform on tools and cursors is to the final geometry and not edited geometry. In snapping to edited geometry, there are some specific behaviors that are not convenient in some cases. For example the general occlusion test of X-Ray geometries during dragdrop. This fix also resolves a regression for tools like measure and placement that were also ignoring the snap to face in x-ray mode. Differential Revision: https://developer.blender.org/D13410
2022-01-11Fix T94600: Apply single shrinkwrap constraint failsPhilipp Oeser
rBd6891d9bee2b introduced a way to apply a single constraint from the constraint stack. For this we want to work in the evaluated domain, in particular the constraint target should be evaluated (the shrinkwrap constraint needs to have access to the target's evaluated mesh). Thx a lot to @sergey for handholding here! Maniphest Tasks: T94600 Differential Revision: https://developer.blender.org/D13765
2022-01-11Fix T93949: Preview Image Error When No ScreenHarley Acheson
Fix an error if "File Preview Type" is "Auto" and there is no screen. See D13574 for details. Differential Revision: https://developer.blender.org/D13574 Reviewed by Julian Eisel
2022-01-11Fix T94708: negative reference count error with Python API callbacksCampbell Barton
Regression in 7972785d7b90771f50534fe3e1101d8adb615fa3 that caused Python callback arguments to be de-referenced twice - potentially accessing freed memory. Making a new-file with a circle-select tool active triggered this (for example). Now arguments aren't de-referenced when Blender it's self has already removed the callback handle.
2022-01-11Fix T94145: Knife tool fails in orthographic modeCian Jinks
Calculating min and max orthographic extent forgot to convert to worldspace coordinates.
2022-01-11Fix T93695: Discontinuous cutting with the knife toolCian Jinks
An important check to reject edge linehits when a vertex of that edge was already hit was accidentally removed in rB6e77afe6ec7b6a73f218f1fef264758abcbc778a
2022-01-11Fix T94506: Crash in CompositingSergey Sharybin
2022-01-11Fix Cycles allocating result too earlySergey Sharybin
When tiled rendering was used the render result was allocated at the end of every view layer render as opposite of an intended end of all rendering. Modify the render_result_end so that it only ensures pixels are allocated if pixels are actually copied over.
2022-01-11Fix T94169: Missing grease pencil render with tiled renderingSergey Sharybin
Delay grease pencil for until after the render result is written to the Blender side. Differential Revision: https://developer.blender.org/D13740
2022-01-11Fix T94620: GPencil AutoMerge does not work when Draw On Back is enabledAntonio Vazquez
The problem was the stroke was added to head and the `prev` pointer was NULL. Now check if there is the list is empty`next`.
2022-01-11Fix T94392: 3D Cursor surface projection onto hidden geometryGermano Cavalcante
Regression introduced in rB098008f42d8127d9b60717c7059d3c55a3bfada7 Previously the selected geometry was ignored along with the hidden one. The mentioned commit caused neither the hidden nor the selected one to be ignored. But hidden geometry needs to be ignored.
2022-01-11LineArt: Correct clamping of out of bound isect indexYimingWu
Handles rare cases where line doesn't intersect the triangle correctly.
2022-01-11LineArt: Correct collection intersection mask logic.YimingWu
The logic used to be: "if collection doesn't have child collection, check if ob is from this one" The correct logic should be: "if collection child does not have this ob, then check this collection".
2022-01-11Fix T93868: GPencil material filter does not work with instancesAntonio Vazquez
When the material is used in several objects, the filter by material is not working as expected because the internal pointers are different due eval version. Now, the original version of the material is compared to keep same address.
2022-01-11Fix T93134: Set origin broken for curve edit modeShen Ciao
Bug: Set Origin causes unexpected offset on Grease Pencil strokes when Curve Editing is enabled. Fix: Add transformation of editcurve points in `object_origin_set_exec`. Reviewed By: #grease_pencil, antoniov Maniphest Tasks: T93134 Differential Revision: https://developer.blender.org/D13273
2022-01-11Fix T93163: GPencil scale thickness fails in negative scalesAntonio Vazquez
Before the negative scales produced a thickness invalid. Now, the value is used in absolute value to avoid this situation.
2022-01-11Fix T94454: Python API curve to mesh use after free without depsgraphHans Goudey
This was caused by a mistake in eb0eb54d9644c5139, which removed the clearing of the curve edit mode pointers that are set when creating the temporary data for the conversion. If they are not cleared, the generic ID free function will also free the edit mode data, which is wrong when the source curve is in edit mode.
2022-01-11Fix T94442: Trim curve node can crash with duplicate pointHans Goudey
The calculation to find the factor between two evaluated points assumed that the points were not at the same location. This assumption is some- what reasonable, since we might expect `lower_bound` to skip those point anyway. However, the report found a case where the first two evaluated points were coincident, and there is no strong reason not to make this safe, so add a check for 0 length before the division.
2022-01-11Fix T94334: 3DView View Menu Close ErrorHarley Acheson
Add Error checking to `do_view3d_header_buttons` so that it does not crash if area->win does not exist because it has been closed. Note this is a temporary simple fix that will be replaced by D13660. --- Selecting "Close Area" from the 3DView View / Area menu will crash when `do_view3d_header_buttons` is called afterward even though the area has closed. It gets a NULL result from CTX_wm_window(C) and dies. This patch just adds a check for this being NULL and exits out in this case. `uiTemplateEditModeSelection` is a bit dodgy adding `do_view3d_header_buttons` as a handler for the entire uiBlock. This patch is meant to be a simple and temporary solution in 3.01, replaced later by {D13660} which fixes this area by using an operator instead.
2022-01-11Fix T93408: Snap performance regression at high poll rateGermano Cavalcante
Caused by {rBfba9cd019f21f29bad1a6f3713370c5172dbc97f}. The snap timer was accidentally modified and damaged.
2022-01-11Fix: Build issue on 32 bit archsRay Molenkamp
The cast to size_t leads to a build issue on 32 bit archs. cursor_delim_type_utf8 expects an int so an additional cast to size_t is not required. Reported by user frispete on devtalk.
2022-01-11Fix T94191: correct (time) translation headers not showing DeltaXGermano Cavalcante
Caused by {rBb0d9e6797fb8} For the header (both Graph Editor case in general `headerTranslation` as well as `headerTimeTranslate`) we are interested in deltas values (not absolute values). Since culprit commit, `snapFrameTransform` was not working with deltas anymore, but we have to compensate for this. For the Graph Editor, this only worked "by accident" in rB7192e57d63a5, since `ival` is still zero at this point. So now, reacquire the delta right after the snap operation. Also use a more appropriate center value in the translate operator. Maniphest Tasks: T94191 Differential Revision: https://developer.blender.org/D13641
2022-01-11Fix T94280: Crash when splitting meta stripRichard Antalik
This happens because in `SEQ_time_update_sequence` function `SEQ_get_meta_by_seqbase` returns uninitialized value. This isn't nice, but it shouldn't happen in first place. Problem is, that `SEQ_edit_strip_split` does move strips into detached `ListBase`, so other functions can't see them anymore. Detached `ListBase` is used solely to preserve relationships during duplication. Move strips to original `ListBase` immediately after duplication and return `NULL` if `SEQ_get_meta_by_seqbase` can't find meta strip. Splitting itself can still rely on fact, that number of original and duplicated strips is same and they are placed next to each other in exactly same order at the end of original `ListBase`.
2022-01-11Fix T94254: Crash using view_all operator in VSERichard Antalik
Caused by `NULL` dereference in `SEQ_meta_stack_active_get()`. Check if `Editing` is `NULL` before accessing meta stack.
2022-01-11Fix T94184: Outliner: Collection dragging tooltip is not updatingGermano Cavalcante
In the context of the dragdrop tooltip, the event referenced to the window is out of date and contains invalid `mval` values. Avoid using `win->eventstate` as much as possible.
2022-01-11Fix T94109: 3d cursor crash when using shortcutGermano Cavalcante
Operator was erroneously starting edge_slide operation. Revert part of the changes in rB3fab16fe8eb4 as obedit_type was being confused with object_mode.
2022-01-11Fix T94115: Selecting current action in undo history undoes allCampbell Barton
When selecting the current undo step there is no need to do anything. Fix and minor refactor to de-duplicate refreshing after running undo/redo & undo history.
2022-01-11Cleanup: Correct order of guard and lock in moviecache_valfreeJesse Yurkovich
Fix own mistake in rB7061d1e39fe In my attempt to quickly address T92838, along with the original bug, I made a nonsensical choice to use the limiter lock to guard the check against the cache item itself. While harmless, it is not necessary and semantically wrong / potentially confusing to future readers of the code. Differential Revision: https://developer.blender.org/D13122
2022-01-11Fix T92740: Missing lock around the image CacheLimiterJesse Yurkovich
A recent change exposed this long-standing race. Simply protect the MEM_CacheLimiter with its lock now. Additionally, guard against unmanaging an already destroyed cache handle. Ref T92740, T92838
2022-01-11Fix T94082: Curve to point empty evaluated NURBS crashHans Goudey
This is basically the same as rBee4ed99866fbb7ab04, the fix is simply to check if the spline has evaluated points when deciding the offsets into the result points array.
2022-01-11Fix T93971: "Center Cursor & Frame All" fails to redrawCampbell Barton
bda9e4238a07a72c26598ea9025e00f6ca896750 changed smooth-view not to redraw when there were no changes made. Redrawing is needed for repositioning the cursor. Subscribe to changes to the 3d cursor to ensure all view ports are updated (not just the current one).
2022-01-11Fix meta-ball bound-box calculation reading past buffer boundsCampbell Barton
This broke "test_undo.view3d_multi_mode_select" test in "lib/tests/ui_simulate" and is likely exposed by recent changes to bounding box calculation. The missing check for DL_INDEX4 dates back to code from 2002 which intended to check this but was checking for DL_INDEX3 twice which got removed as part of a cleaned up. This could be hidden from memory checking tools as meta-balls over-allocate vertex arrays.
2022-01-11Fix T93649: Blender freezes when saving with active VR sessionJulian Eisel
Dead-lock when VR viewport drawing and depsgraph updates would fight for the draw-manager GL lock. This didn't usually cause issues because the depsgraph would be evaluated at this point already, except in rare exceptions like after file writing. Fix this by ensuring the XR surface gets its depsgraph updated after handling notifiers, which is where regular windows also do the depsgraph updating.
2022-01-11Fix T93704: StructRNA.path_resolve fails silently with missing keysCampbell Barton
Resolving the path to a missing pose-bone (for example), was not raising an error as it should have. Regression introduced in f9ccd26b037d43f2490d1f0263e45e775d30473d, which didn't update collection lookup logic to fail in the case the key of a collection wasn't found.