Commit Graph

129790 Commits

Author SHA1 Message Date
Jaume Bellet 14a8265648 Merge branch 'bf-blender' into mb-0008-mblender-core 2023-11-02 21:54:56 +01:00
Jaume Bellet b5acb41f73 allow to execute py scripts located on scripts/mblender folder 2023-11-02 21:54:32 +01:00
Jaume Bellet b8015854c6 Merge branch 'main' of https://projects.blender.org/blender/blender into bf-blender 2023-10-28 17:00:09 +02:00
Omar Emara 01a2bd0369 Fix #113811: Blender freezes upon adding a Cryptomatte node
Blender freezes when adding a Cryptomatte node and using the GPU
compositor, even if the node is later removed.

This was because the CPU compositor acquired a render result mutex and
never released it due to an early exit that missed that release. This
patch fixes that by adding an appropriate release in that early exist.
2023-10-27 22:25:54 +02:00
Jaume Bellet 6d6bd017f3 remove bad folder 2023-10-27 07:55:11 +02:00
Campbell Barton d31c61edee Cleanup: spelling in comments 2023-10-27 12:13:48 +11:00
Campbell Barton e8279ff4ee Cleanup: format 2023-10-27 12:13:46 +11:00
Campbell Barton ce027579e0 Merge branch 'blender-v4.0-release' 2023-10-27 11:53:46 +11:00
Campbell Barton 585f43064a Fix edit-mode undo leaving edit-mode with multiple windows
With two or more windows, edit-mode undo assumed it was
possible to load the undo state into the current scene.

When multiple windows are used this is not always the case.
Edit-mode undo steps now store the scene used to create them
which is used to read undo data back into this scene
(when it's shown in a window). Otherwise the current context is used.
2023-10-27 11:50:07 +11:00
Jaume Bellet d7cbb13067 remove bad located file 2023-10-26 22:38:40 +02:00
Jaume Bellet 680120c380 Merge branch 'bf-blender' into mb-0008-mblender-core 2023-10-26 19:24:48 +02:00
Jaume Bellet 2929f19115 Removed bad located folder. 2023-10-26 18:30:31 +02:00
Matias Mendiola fbb3726f68 GPv3: Menus updates
Adds context menus and updates existing menus with newly added operators

- Updates menu texts and separators
- Add Point Menu
- Add Stroke and Point Context Menu

Pull Request: https://projects.blender.org/blender/blender/pulls/114172
2023-10-26 16:52:31 +02:00
Brecht Van Lommel d7c2ef16fe Merge branch 'blender-v4.0-release' 2023-10-26 15:51:19 +02:00
Douglas Paul c50b682858 Fix #114156: animation player assert on launch on macOS
Adds missing calls to GPU_render_begin and GPU_render_end,
required for Metal.

Pull Request: https://projects.blender.org/blender/blender/pulls/114157
2023-10-26 15:50:20 +02:00
Campbell Barton b5a9cad252 Merge branch 'blender-v4.0-release' 2023-10-26 22:28:00 +11:00
Campbell Barton 4f0d8931f0 Fix undo crash with multiple scenes & windows
Creating a new window then a new scene would crash on undo
because the undo step loaded would not contain the new windows scene.

Regression introduced since 3.6.
2023-10-26 22:26:13 +11:00
Jaume Bellet 8aefac4a9d Merge branch 'main' of https://projects.blender.org/blender/blender into main 2023-10-26 11:19:54 +02:00
Jaume Bellet 9544563308 unaply MB-0004 2023-10-26 11:15:23 +02:00
Jaume Bellet 73fc76fe20 reverted MB-0003 2023-10-26 11:12:30 +02:00
Jaume Bellet 0e869c288a removed MB-0002 patch 2023-10-26 11:01:55 +02:00
Jaume Bellet 131c94004d added MB_ID file, was removed during a merge? 2023-10-26 08:09:06 +02:00
Jaume Bellet f5c10fca1a Merge branch 'main' into mb-0008-mblender-core 2023-10-26 08:07:32 +02:00
Jaume Bellet 12256b0055 removing /mblender folder. Patches will be committed on a separate repo 2023-10-26 08:04:30 +02:00
Jaume Bellet dc0b6d0162 Merge branch 'main' into mb-0008-mblender-core 2023-10-26 07:51:53 +02:00
Jaume Bellet 9d8f4ff0b1 renamed to match pattern 2023-10-26 07:48:08 +02:00
Jaume Bellet a11f0637b6 added a file pattern check 2023-10-26 07:44:34 +02:00
Hans Goudey 0e4a3bd7aa Fix: Selection input inivisible in set selection node
It's much simpler to be able to control the selection with a checkbox.
It can still be a field.
2023-10-25 20:44:18 +02:00
Jaume Bellet 82fdcfa589 added MB-ID file 2023-10-25 19:49:05 +02:00
Jaume Bellet 121d6b9e00 added MB-ID files for patches aplied on main 2023-10-25 19:35:38 +02:00
Jaume Bellet 560af1dd4c moving diff to mblender/patches 2023-10-25 19:24:37 +02:00
Miguel Pozo 247491ef0f Merge branch 'blender-v4.0-release' 2023-10-25 18:58:22 +02:00
Miguel Pozo 5d06632565 Fix #114096: Broken thumbnail shadows 2023-10-25 18:57:41 +02:00
Julian Eisel 72a8851a95 UI Code Quality: Rename `UI_ACTIVE` button flag to `UI_HOVER`
Calling this state "active" has been confusing for a long time for a number of reasons:
- It's not clear that this is essentially a mouse hover state.
- Easy to confuse with "select" state (`UI_SELECT`), both terms are vague.
- Buttons can be "inactive" (`UI_BUT_INACTIVE`) which is totally related to this "active" state.
- Button handling can consider a button as active that doesn't have this flag set (e.g. during text input).
- Active and selected are well established terms in Blender, but they mean a different thing there.

See #112160.

Pull Request: https://projects.blender.org/blender/blender/pulls/114113
2023-10-25 18:36:27 +02:00
Michael Jones af9ffee152 Cycles: Metal: Fix occasional anim corruption (KernelData MD5 refresh bug)
This fixes an issue where animation frames occasionally get corrupted (e.g. when rendering "Pokedstudio" Blender 2.77 splash screen). This happens when the KernelData is refreshed but the MD5 isn't immediately regenerated which can cause the wrong PSO to be selected.

Pull Request: https://projects.blender.org/blender/blender/pulls/114153
2023-10-25 17:47:13 +02:00
Brecht Van Lommel 3832059c61 Merge branch 'blender-v4.0-release' into main 2023-10-25 16:21:13 +02:00
Brecht Van Lommel a5cf5a00fb Fix #113849: animation player crash on launch on macOS
GPU backend detection was missing, causing it to try using the
non-existent OpenGL backend.

Thanks to Douglas Paul for helping identify the problem.
2023-10-25 16:19:44 +02:00
Omar Emara 3f49d286cc Fix #113864: Compositor translation is doubled
Translations in the realtime compositor are doubled where there is a
rotation or scale component.

That was due to applying translations even after domain realization. So
this patch restricts the translation to the case where domain
realization doesn't take place.
2023-10-25 16:28:09 +03:00
Clément Foucault e1bad49abf Fix #113862: EEVEE-Next: Flicker with AO or shadow pass
This was caused by wrong alpha values.
2023-10-25 12:49:32 +02:00
Campbell Barton 28394dd42e Merge branch 'blender-v4.0-release' 2023-10-25 21:20:28 +11:00
Campbell Barton 8e38cd9b8f Correct potential error in recent Wayland/LIBDECOR window size change
While the fix worked in my tests, the compositor is allowed to ignore
a requested window state change which could have entered an eternal
loop. Avoid this by limiting the while loop to 2x round-trips.
2023-10-25 21:17:31 +11:00
Campbell Barton ab1be3bd48 Merge branch 'blender-v4.0-release' 2023-10-25 20:47:41 +11:00
Campbell Barton dcaeed7522 Fix Wayland/LIBDECOR size on startup when maximized
Even though the window was maximized, the non-maximized size was used.
Since the display size was used the window would be slightly larger,
clipping the status bar in GNOME.
2023-10-25 20:42:27 +11:00
Falk David 23e9ebfdbd Fix: GPv3: Crash when transforming keyframes
Blender would crash when trying to move/duplicate, etc. some keyframes.
This was because the `convert_type_get` function in the transform code
would return the wrong transform type `TransConvertType_GreasePencil`
instead of `TransConvertType_Action`.
The fix makes sure that we only return the
`TransConvertType_GreasePencil` in the 3d viewport.
2023-10-25 10:24:35 +02:00
Falk David 4d453ca1c0 Fix: GPv3: Erasing when object is not at the origin
When the object was transformed, the eraser would no longer work.
This was because the transformation of the positions to screen space
did not take the transforms into account.
This fix adds the transforms to the erasing operation.
2023-10-25 10:24:35 +02:00
Falk David ab652f7b5f Fix: GPv3: Crash earsing when using modifier
This issue happend when a geometry nodes modifier wouldn't output grease
pencil geometry. In this case, we write an emtpy grease pencil
data-block to the evaluated `geometry_set`. But we don't update the
`eval_frame` that indicates on what frame the grease pencil data-block
was evaluated on.
The fix makes sure we update the `eval_frame` even if the output is
empty.

Additionally, there was a missing return in the
`get_evaluated_grease_pencil_drawing_deformation` function that lead
to an empty `deformation.positions` span.
The fix makes sure we return the correct deformation with the correct
positions.
2023-10-25 10:24:35 +02:00
Campbell Barton 1486f4bc05 UI: add dynamic topology toggle to sculpt menu
This wasn't available in any menus making it inaccessible from menu
search.
2023-10-25 16:18:04 +11:00
Jaume Bellet 788d99b940 Creating diff file 2023-10-25 07:12:56 +02:00
Campbell Barton dbd7c5f35a WM: reduce noisy logging storing/loading operator properties
Don't log wm.operator operator properties when no properties
are stored/loaded, this was noisy, especially for the
INFO_OT_reports_display_update operator when runs from a timer.
2023-10-25 16:01:45 +11:00
Campbell Barton be9b604190 WM: use a fake clipboard when simulating input
Allow simulated interactions to run without clobbering the users
clipboard text.
2023-10-25 15:51:22 +11:00