WIP: Fix #103978 Python: Add deprecation warnings to GPUBatch program usage #105174

Closed
Prakhar-Singh-Chouhan wants to merge 184 commits from (deleted):main into blender-v3.5-release

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

184 Commits

Author SHA1 Message Date
Prakhar-Singh-Chouhan bf8f0b3a42 Merge branch 'blender-v3.5-release' into main 2023-02-26 06:47:40 +01:00
Prakhar-Singh-Chouhan 04996d74b9 Update 'source/blender/python/gpu/gpu_py_batch.c' 2023-02-24 15:18:47 +01:00
Prakhar-Singh-Chouhan 24612553d7 Update 'source/blender/python/gpu/gpu_py_batch.c' 2023-02-24 15:13:13 +01:00
Prakhar-Singh-Chouhan 5ec96a7727 Update 'source/blender/python/gpu/gpu_py_batch.c' 2023-02-24 11:41:34 +01:00
Hans Goudey 2491cd5e16 Cleanup: Move two subdiv headers to C++
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-23 18:30:47 -05:00
Harley Acheson cfb112edcb UI: Widen Search Boxes When Necessary
buildbot/vdev-code-daily-coordinator Build done. Details
Make floating search boxes wider when there is a linked scene or are
otherwise showing more information than a simple list.

Pull Request #104603
2023-02-24 00:07:16 +01:00
Harley Acheson 470e8ce1f4 BLF: Revert Glyph Clipping Changes
buildbot/vdev-code-daily-coordinator Build done. Details
Revert #104679. We are just too used to the old behavior, especially
the incorrect vertical clipping. Some uses rely on setting the min and
max of the clipping rect the same. Will have to revisit this later
to only correct for horizontal positioning for full hinting.

Pull Request #105157

Own Code.
2023-02-23 23:44:17 +01:00
Hans Goudey 1b72712283 Fix: Global buffer overflow of enum property items on startup
buildbot/vdev-code-daily-coordinator Build done. Details
RNA enum items arrays need to end with a null entry.
2023-02-23 15:53:10 -05:00
Hans Goudey 5b1f94f05a Fix: Use of uninitialized mesh size variables after recent cleanup 2023-02-23 15:52:42 -05:00
Hans Goudey c065e8dd7f Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-23 15:31:29 -05:00
Hans Goudey 2bd097a58d Fix: Debug build failure and warnings after recent cleanup commit
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-23 13:21:24 -05:00
Germano Cavalcante 4369627e71 Mesh: replace 'BKE_mesh_merge_verts' algorithm
Blender currently has 2 algorithms for merging vertices:
- `BKE_mesh_merge_verts`;
- `blender::geometry::create_merged_mesh`

`BKE_mesh_merge_verts` has a simplified algorithm to work with Array,
Mirror and Screw modifiers. It doesn't support merge results that would
create new faces. However it has shortcuts to be more efficient in
these modifiers.

`blender::geometry::create_merged_mesh` tries to predict all possible
outcomes. So it's a more complex. But it loses in performance to
`BKE_mesh_merge_verts` in some cases.

The performance comparison between these two depends on many factors.
`blender::geometry::create_merged_mesh` works with a context that has
only the affected geometry. Thus a smaller region of the mesh is read
for duplicate checking. Therefore, the smaller the affected geometry,
the more efficient the operation.

By my tests `blender::geometry::create_merged_mesh` beats
`BKE_mesh_merge_verts` when less than 20% of the geometry is affected
in worst case `MESH_MERGE_VERTS_DUMP_IF_EQUAL` or 17% in case of
`MESH_MERGE_VERTS_DUMP_IF_MAPPED` .

For cases where the entire geometry is affected, a 30% loss was noticed,
largely due to the creation of a context that represents the entire mesh.

Co-authored-by: Germano Cavalcante <germano.costa@ig.com.br>
Pull Request #105136
2023-02-23 19:10:01 +01:00
Brecht Van Lommel 8e50539f1b Merge branch 'blender-v3.5-release' into main
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-23 17:26:52 +01:00
Christoph Lendenfeld b88428a301 Fix: Frame Channel when using normalized view
When using the frame channel operators from #104523
the framing would fail under the following circumstance.
* In the graph editor
* Using normalized view
* with a curve that has a y-extent of less than the focus threshold of 0.01

The issue was the the clamping code was
before the normalization multiplication.

Pull Request #105121
2023-02-23 17:23:03 +01:00
Christoph Lendenfeld 8a8c1988bd Fix: Using "Frame Channel" in Dope sheet resets view to top
When using the "Frame Channel" operator in the Dope Sheet
the view would always go back to the top.

Fix it by copying the y bounds when in the Dope Sheet.

Pull Request #105123
2023-02-23 17:17:26 +01:00
Hans Goudey cb62ab5b28 Cleanup: Access mesh edges, faces, and loops with spans
Using spans instead of raw pointers helps to differentiate ararys from
pointers to single elements, gives bounds checking in debug builds, and
conveniently stores the number of elements in the same variable.

Also make variable naming consistent. For example, use `loops` instead
of `mloop`. The plural helps to clarify that the variable is an array.

I didn't change positions because there is a type mismatch between
C and C++ code that is ugly to manage. All remaining code can be
converted to C++, then that change will be simpler.

Pull Request #105138
2023-02-23 17:14:03 +01:00
Hans Goudey a74fd9f2ae Cleanup: Remove unnecessary copying of mesh data outside CustomData
This code seems to be left over from before edges, polys, and loops were
stored in CustomData. They are already copied by the CustomData copy
calls directly above, which already deal with every other layer.
2023-02-23 17:14:02 +01:00
Jacques Lucke 1851a69014 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-23 15:57:34 +01:00
Miguel Pozo 6403bc28cd Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-23 15:16:33 +01:00
Brecht Van Lommel 25a5ff7670 Merge branch 'blender-v3.5-release' into main
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-23 14:57:40 +01:00
Jeroen Bakker afd0ab5cce Vulkan: Initial VKUniformBuffer.
Only supports uploading data to a uniform buffer.
Requirement for push constants #104880.

Pull Request #105129
2023-02-23 14:51:34 +01:00
Jeroen Bakker f5c0b2433f Vulkan: Resolve Builtin Uniform(Block).
Resolving builtin uniforms and uniform blocks when creating
shader interface. This maps builtin uniforms to uniforms
defined by the shader. Works the same as the OpenGL
builtin uniforms.

Pull Request #105128
2023-02-23 14:50:49 +01:00
Jeroen Bakker 90f5b2f0ce Vulkan: Get access to physical device limits.
buildbot/vdev-code-daily-coordinator Build done. Details
This patch will give access to the physical device limits
of the device associated with the context. In vulkan each
device has different limits and the application is
responsible to match these limits as the vulkan driver
just ignores calls that don't match these limits.

Those limits are GPUBackend specific and therefore are not
added to GPU_capabilities.

Pull Request #105125
2023-02-23 13:47:29 +01:00
Falk David 78a54f23db Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-23 13:30:53 +01:00
Falk David e2ba7f902d Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-23 13:15:44 +01:00
Falk David f93f743ffc Fix #105043: Add shortcut for proportional editing
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-23 12:24:23 +01:00
Sybren A. Stüvel c8ed48d5ca Merge remote-tracking branch 'origin/blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-23 11:28:02 +01:00
Bastien Montagne 4cd00b1a71 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-23 10:44:54 +01:00
Christoph Lendenfeld 7267682017 Animation: Paste Keys in Graph Editor with value offset
buildbot/vdev-code-daily-coordinator Build done. Details
Extend the `GRAPH_OT_paste` operator with an enum to define the value offset.

Options are:

| Option              | Effect                                                                        |
| ------------------- | ----------------------------------------------------------------------------- |
| No Offset           | use the same key values as the copied keys                                    |
| Cursor Value        | align the leftmost key with the cursor value                                  |
| Current Frame Value | Evaluate the curve under the cursor align the leftmost key with it            |
| Right Key           | Align the rightmost key with the first key that is to the right of the cursor |
| Left Key            | Align the leftmost key with the first key that is to the left of the cursor   |

Pull Request #104512
2023-02-23 09:46:47 +01:00
Christoph Lendenfeld 8756671084 Animation: Add Slider operators to hotkey menu
buildbot/vdev-code-daily-coordinator Build done. Details
Before that patch, the slider operators for the Graph Editor are not easily accessible since they don't have a hotkey.
This adds the "d" hotkey for the already existing slider operator menu.

Using the popup menu means that your last used operator will always be under the cursor, so it's quick to access.

Pull Request #104530
2023-02-23 09:29:18 +01:00
Joseph Eagar ddcf718640 Sculpt: Fix #104475, data transfer not respecting vgroup for float colors
buildbot/vdev-code-daily-coordinator Build done. Details
This might've been a merge error, the result of color mixing
was being overwritten by a simple copy of source to destination
inside of layerCopyValue_propcol.
2023-02-22 23:31:44 -08:00
Christoph Lendenfeld 45731fd987 Refactor: Weight Paint Select Linked Faces
When implementing the operator to select linked vertices in weight paint mode, the new `AtomicDisjointSet` was used.
In order to keep the code consistent, and also prepare it to add things like Extending/Shrinking selection, the select linked faces logic was also updated.

It now also makes use of the `AtomicDisjointSet` by connecting all edges of each poly. In order to find connecting Faces you then have to check if edges of that poly share a connection.

Pull Request #104577
2023-02-23 08:26:32 +01:00
Joseph Eagar 4eb90fc15c Sculpt: Fix #104618 (again).
buildbot/vdev-code-daily-coordinator Build done. Details
SculptAttributeParams.stroke_only wasn't being
applied to existing attributes properly.
2023-02-22 23:04:53 -08:00
Joseph Eagar 7f256e0d33 Sculpt: fix 104174, clicking over empty space always pushes undo.
buildbot/vdev-code-daily-coordinator Build done. Details
This was actually caused by two problems.  The first is that the
code actually deliberately detects if nothing happened and pushed
an undo step, a bugfix for a problem that no longer exists.

The second was that SCULPT_test_location sometimes does a closest
point search instead of ray casting and didn't check the result
against the brush radius.
2023-02-22 22:37:28 -08:00
Clément Foucault e497a50aa2 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-22 21:03:17 +01:00
Hans Goudey 8693f1fdd2 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-22 13:36:04 -05:00
Harley Acheson defd95afcd Win32: Auto-Raise and -Focus Windows on Hover
On the Windows platform, raise windows and give them focus as the mouse
hovers over them. This allows keyboard shortcuts for the area under the
mouse without having to click the window caption to make them active.

Pull Request #104681
2023-02-22 10:26:43 -08:00
Harley Acheson 54fa3b124f BLF: Glyph Clipping Corrections
buildbot/vdev-code-daily-coordinator Build done. Details
Improvements to how glyphs are tested against the font clipping rect.

Pull Request #104679
2023-02-22 10:00:37 -08:00
Miguel Pozo 967662eda4 Merge branch 'blender-v3.5-release' 2023-02-22 18:50:54 +01:00
Jacques Lucke 915e436574 Merge branch 'blender-v3.5-release' 2023-02-22 18:43:17 +01:00
Jacques Lucke 775b51a847 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-22 17:38:59 +01:00
Pablo Vazquez cbb4f8a9ba UI: Add color selector to Bone Groups list
Expose the color selector on each item in the list, so it's easier to see
at a glance the Bone Groups color theme and change it.

Also avoids having color widgets grayed out when not in Custom Colors mode.

Pull Request #105036
2023-02-22 17:34:44 +01:00
Sonny Campbell 1b7076bd4f USD import: extract read_mesh params into a struct.
This is a small initial refactor to extract the
USDGeomReader::read_mesh parameters into a separate struct.
This will allow for adding extra parameters to handle importing
velocities for #104462 which was brought over from

https://archive.blender.org/developer/D15430

Original patch was being reviewed here:

https://archive.blender.org/developer/D15435

Pull Request 104459
2023-02-22 11:22:48 -05:00
Julian Eisel d58e422ac3 UI: Properly cancel dragging on escape or right-click
buildbot/vdev-code-daily-coordinator Build done. Details
This is refering to drag & drop within Blender which is using the
drop-box system.

Previously Escape would cancel the dragging, but still pass on the event
to other event handlers, which could trigger other behavior. For example
cancelling dragging a file in a file browser dialog would also cancel
the file browser operation and close the window. Right-click didn't
cancel anything even though we usually use both Escape and right-click
as a way to cancel the operation.

Now both escape and right-click both cancel the dragging and the event
is not passed on further.

Pull Request: #104838
2023-02-22 16:54:07 +01:00
Philipp Oeser d6a61bc864 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-22 15:27:57 +01:00
Jeroen Bakker 8c03410ebd Vulkan: Refactor shader interface.
buildbot/vdev-code-daily-coordinator Build done. Details
Descriptor set locations are now determined in the
VKShaderInterface. Issues with the previous solution:

- Due to legacy code in GPU module the locations/bindings
  must be the same. Using one for something else might
  result in undesired lookups, incorrect resource
  bindings.
- Images/Textures reuses the same namespace, that didn't
  work as expected when looking up the resources via
  its binding.

This refactoring is required for adding support for
push constants.

Pull Request #105073
2023-02-22 14:42:01 +01:00
Hans Goudey 709013dca4 Cleanup: Move rna_access.c to C++
buildbot/vdev-code-daily-coordinator Build done. Details
See #103343

Pull Request #105060
2023-02-22 14:04:57 +01:00
Hans Goudey 140a663f6f Cleanup: Move area.c to C++
See #103343

Pull Request #105061
2023-02-22 14:04:23 +01:00
Richard Antalik e1f6587f12 VSE: Add retiming tool
buildbot/vdev-code-daily-coordinator Build done. Details
This tools allows to change strip playback speed by manipulating
retiming handles. More handles can be added to single strip to create
variable playback speed.

This tool replaces Speed Factor property in time panel, with exception
of sound strips. Support for sound strips is still in review.

Pull Request #104523
2023-02-22 13:16:32 +01:00
Philipp Oeser 50ebe21dd3 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-22 11:37:42 +01:00
Bastien Montagne ad124d15e2 Merge remote-tracking branch 'upstream/blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-22 10:05:03 +01:00
Hans Goudey 612965497e Curves: Avoid unnecessary allocation when calculating offsets
buildbot/vdev-code-daily-coordinator Build done. Details
Arrays for curve handle types were allocated even when there were no
Bezier curves. This saves 0.5ms of the total 0.9ms spent creating the
evaluated curve offsets, which happens every time the topology
of non-poly curves change.
2023-02-21 22:32:36 -05:00
Hans Goudey 05637254da Cleanup: Use simpler syntax to return panel open status
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-21 21:45:41 -05:00
Harley Acheson 8b63966236 Revert 104438: Windows Spanning Multiple Monitors
buildbot/vdev-code-daily-coordinator Build done. Details
Revert of commits that allowed non-temp Blender windows to be saved
and restored that spanned multiple monitors on the Windows platform.
This causes problems with temp windows (like Preferences & Render) that
cannot currently be fixed.

See 104956 for much more details.

This change is being redone after it was accidentally reverted.

Differential Revision: #104956

Reviewed by Ray Molenkamp
2023-02-21 15:45:45 -08:00
Ray molenkamp b874a0ead8 msgfmt: fix runtime requirements
buildbot/vdev-code-daily-coordinator Build done. Details
msgfmt has a TBB dependency though bf_blenlib, now for a release build
The MSVC linker is smart enough to realize none of the TBB code is
actually used and discards it. In debug mode the linker is a bit more
conservative and doesn't, leaving msgfmt with a runtime dependency
on TBB. The problem here is, we only copy the runtime dlls during
the install phase, and msgfmt runs long long before that.

For this reason when we run msgfmt we should make sure any runtime
needs it could have are met in the path, there already is a handy
variable for that since oslc has similar requirements.

Pull Request #105048
2023-02-21 23:00:34 +01:00
Harley Acheson 7216eb8879 UI: UIList Hover Highlighting
buildbot/vdev-code-daily-coordinator Build done. Details
Add mouse hover highlighting for items in UILists, in both list mode
and preview tile mode.

See 104677 for more details

Differential Revision: #104677

Reviewed by Brecht Van Lommel
2023-02-21 13:03:17 -08:00
Martijn Versteegh ac160a270f Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-21 19:29:13 +01:00
Sergey Sharybin e82d4f1f93 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-21 18:41:43 +01:00
Sergey Sharybin 1b96dd535a Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-21 17:20:34 +01:00
Sergey Sharybin 78825783cc Merge branch 'blender-v3.5-release' 2023-02-21 17:18:47 +01:00
Antonio Vazquez ade37c0212 Merge branch 'blender-v3.5-release' into main 2023-02-21 17:13:43 +01:00
Hans Goudey 996eb1bd5f Cleanup: Remove unused UV map deletion functions
buildbot/vdev-code-daily-coordinator Build done. Details
The attribute API is now used instead.
2023-02-21 10:53:29 -05:00
Sergey Sharybin 7fe42ea566 Merge branch 'blender-v3.5-release' 2023-02-21 16:50:35 +01:00
Hans Goudey b02778147d Merge branch 'blender-v3.5-release' 2023-02-21 10:46:45 -05:00
Sergey Sharybin ecb88eff7e Merge branch 'blender-v3.5-release' 2023-02-21 16:41:47 +01:00
Charles Wardlaw 92dc89e28a Fix tests for macOS storage_apple.mm functions.
buildbot/vdev-code-daily-coordinator Build done. Details
Pull Request #105000
2023-02-21 16:06:42 +01:00
Jeroen Bakker 6a5caf9d88 Vulkan: Fix mismatch in shader and resource types.
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-21 15:36:11 +01:00
Jeroen Bakker e9f8020f75 Cleanup: added empty line between methods. 2023-02-21 15:36:11 +01:00
Julian Eisel a55e38e05d Fix duplicated code after merge from release branch
a280554b75 was committed to fix this in main, b5fa180d5d for the release
branch. Only one is needed though :)
2023-02-21 15:27:51 +01:00
Jeroen Bakker 7fb1f060ff Vulkan: Initial Compute Shaders support
buildbot/vdev-code-daily-coordinator Build done. Details
This patch adds initial support for compute shaders to
the vulkan backend. As the development is oriented to the test-
cases we have the implementation is limited to what is used there.

It has been validated that with this patch that the following test
cases are running as expected
- `GPUVulkanTest.gpu_shader_compute_vbo`
- `GPUVulkanTest.gpu_shader_compute_ibo`
- `GPUVulkanTest.gpu_shader_compute_ssbo`
- `GPUVulkanTest.gpu_storage_buffer_create_update_read`
- `GPUVulkanTest.gpu_shader_compute_2d`

This patch includes:
- Allocating VkBuffer on device.
- Uploading data from CPU to VkBuffer.
- Binding VkBuffer as SSBO to a compute shader.
- Execute compute shader and altering VkBuffer.
- Download the VkBuffer to CPU ram.
- Validate that it worked.
- Use device only vertex buffer as SSBO
- Use device only index buffer as SSBO
- Use device only image buffers

GHOST API has been changed as the original design was created before
we even had support for compute shaders in blender. The function
`GHOST_getVulkanBackbuffer` has been separated to retrieve the command
buffer without a backbuffer (`GHOST_getVulkanCommandBuffer`). In order
to do correct command buffer processing we needed access to the queue
owned by GHOST. This is returned as part of the `GHOST_getVulkanHandles`
function.

Open topics (not considered part of this patch)
- Memory barriers & command buffer encoding
- Indirect compute dispatching
- Rest of the test cases
- Data conversions when requested data format is different than on device.
- GPUVulkanTest.gpu_shader_compute_1d is supported on AMD devices.
  NVIDIA doesn't seem to support 1d textures.

Pull-request: #104518
2023-02-21 15:04:52 +01:00
Brecht Van Lommel 02c2970983 Cycles: add NanoVDB support for Metal on Apple Silicon
Contributed by Yulia Kuznetcova at Apple.

NanoVDB is patched to give add address spaces required by Metal. We hope that
in the future Metal will support the generic address space.

For AMD and Intel this is currently not available since it causes a performance
regression also on scenes without volumes.

Pull Request #104837
2023-02-21 15:03:52 +01:00
Hans Goudey 8b8d8acc84 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-21 08:45:46 -05:00
Falk David 68a8f96cca Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-21 13:21:13 +01:00
Julian Eisel a280554b75 Fix new essentials asset library not being covered in library path query
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-21 12:20:09 +01:00
Bastien Montagne a91c6e71db Brush: Add writing and reading ID preview for Brushes.
Mandatory change for the Brush Assets project, from quick test does not
seem to break anything (more) in existing 'old' brushes...

Re. #101908.

Pull Request #105016
2023-02-21 12:15:33 +01:00
Brecht Van Lommel fdf6252b5a Merge branch 'blender-v3.5-release' 2023-02-21 12:04:30 +01:00
Brecht Van Lommel 6eccea7a6f Gitea: more updates for new scoped label syntax
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-21 11:16:52 +01:00
Brecht Van Lommel 5b0cb65a56 Gitea: update for new scoped label syntax 2023-02-21 11:13:22 +01:00
Falk David 8a135a9a5f Curves: Add cursor snapping support
This adds support for cursor snapping for the new curves object.

It implements a function `transverts_from_curves_positions_create` (to separate the logic from the `Curves` object type). That function is then C wrapped by `ED_curves_transverts_create` and finally used in `ED_transverts_create_from_obedit`.

Pull Request #104967
2023-02-21 11:04:40 +01:00
Falk David ad7f8a1fa5 Merge branch 'blender-v3.5-release' 2023-02-21 11:02:30 +01:00
Sergey Sharybin e1b58be9e2 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-21 10:17:13 +01:00
Antonio Vazquez c38cac9682 Merge branch 'blender-v3.5-release' into main 2023-02-21 10:05:50 +01:00
Christoph Lendenfeld 4ab91dc0c9 Fix: Channel clamping when markers are used
buildbot/vdev-code-daily-coordinator Build done. Details
Previously when markers were used, the newly introduced clamping code (#104516) would stop the last channel from being shown.

This patch fixes that by modifying the `v2d->tot.ymin` calculation.

This is a bit counterintuitive since the `v2d->tot` height is calculated in `action_draw.c`. But the advantage of doing it there is that it also works for the channels region.

Pull Request #104892
2023-02-21 09:23:59 +01:00
Jesse Yurkovich 2d34a09043 Tests: Address imbuf_save failures on ARM64 builds
buildbot/vdev-code-daily-coordinator Build done. Details
This does 2 things to address the ARM64 failures:
- Increases the threshold to be inline with what Cycles uses
- Disables the 2 problematic WebP variations (#105006 will track)
2023-02-20 21:36:19 -08:00
Chris Blackbourn ece43dd716 Cleanup: format
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-21 17:07:02 +13:00
Jesse Yurkovich 7699c7407d Tests: Add tests for image format saving and loading
buildbot/vdev-code-daily-coordinator Build done. Details
This adds saving and loading tests for our supported image formats.

**Saving - bf_imbuf_save.py**
There are 2 template images which are loaded anew for each file save
attempt.  One is an 8-bit RGBA image and the other 32-bit. This is
required as many formats use a variety of factors to determine which of
`ibuf->rect` or `ibuf->rectfloat` to use for processing.  The templates
are constructed to have alpha transparency as well as values > 1 (or
clamped to 1 for the case of the 8-bit template).

Test flow:
 - Load in an appropriate template image
 - Save it to the desired format with the desired set of options
 - Compare against the reference image

Notes:
 - 98 references are used totaling ~3.6MB
 - 10-12 second test runtime
 - Templates can be reconstructed with the create-templates.blend file

**Loading - bf_imbuf_load.py**
Test flow:
 - Load in each of the reference images
 - Save them back out as .exr
 - Save additional metadata to a secondary file (alpha mode, colorspace etc)
 - Compare the saved out .exr with another set of reference .exrs
 - Compare the saved out file metadata with set of reference metadata

Notes:
 - 98 exr references are used totaling ~10MB
 - 10-12 second test runtime as well

A HTML report is not implemented. The diff output organization is very
similar to the other tests so it should be somewhat easy to do in the
future if we want.

The standard set of environment variables are implemented for both:
BLENDER_TEST_UPDATE, BLENDER_VERBOSE, and BLENDER_TEST_COLOR

Pull Request #104442
2023-02-20 19:06:38 -08:00
Joseph Eagar ff3fd5f1ce Sculpt: Implement mesh filter cancel
buildbot/vdev-code-daily-coordinator Build done. Details
Added new function sculpt_mesh_filter_cancel in sculpt_filter_mesh.cc
for cancelling mesh filters. It currently is unused pending a
revamped modal map for mesh filter (see pull req 104718).
2023-02-20 18:09:05 -08:00
Joseph Eagar 3e049973ee BMesh: fix invalid existence check in BM_mesh_bm_to_me
buildbot/vdev-code-daily-coordinator Build done. Details
Remember that the null customdata layer index is -1,
not 0.
2023-02-20 17:46:45 -08:00
Chris Blackbourn 07ae1feed2 Fix test
buildbot/vdev-code-daily-coordinator Build done. Details
Pull Request #104934
2023-02-20 23:04:10 +01:00
Chris Blackbourn ba6c9a6f59 BLI_math: fix parameter aliasing in mul_m3_series and mul_m4_series
No functional changes.
2023-02-20 23:04:10 +01:00
Leon Schittek 7c1e26dd64 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-20 21:24:48 +01:00
Hans Goudey cc925b9282 Nodes: Allow adding multiple search items per type in add menu
buildbot/vdev-code-daily-coordinator Build done. Details
Add a per node type callback for creating node add search operations,
similar to the way link drag search is implemented (11be151d58).

Currently the searchable strings have to be separate items in the list.
In a separate step, we can look into adding invisible searchable text
to search items if that's still necessary.

Resolves #102118

Pull Request #104794
2023-02-20 19:17:03 +01:00
DESKTOP-ON14TH5\Sonny Campbell ceba1854f9 BLI: add function for changing working directory
buildbot/vdev-code-daily-coordinator Build done. Details
Add `BLI_change_working_dir(path)` to change the current working directory.

This change is required for adding USDZ support to Blender. When exporting to that format, we are required to do a weird change of directory because of a quirk with the USD library's USDZ functionality. If an absolute filepath is passed into the `UsdUtilsCreateNewUsdzPackage` function, the USDZ archive will store that full path.

macOS uses `NSFileManager` through some new Mac-only wrapper functions.

Ref #99807

Pull Request #104525
2023-02-20 15:58:38 +01:00
Sergey Sharybin 8abef86217 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-20 15:37:02 +01:00
Sergey Sharybin 9b7eb57cf7 Merge branch 'blender-v3.5-release' 2023-02-20 15:33:44 +01:00
Germano Cavalcante 5a85b62bbc Transform Gizmo: calculate matrix_offset when creating the gizmos
That way the `matrix_base` doesn't need to depend on the axis
simplifying the code.

This also fixes an issue in plane scaling gizmos with non-orthogonal
matrix.
2023-02-20 11:28:11 -03:00
Julian Eisel 82ab491ab5 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build started. Details
2023-02-20 12:59:47 +01:00
Bastien Montagne e55f8b0b52 Merge branch 'blender-v3.5-release' 2023-02-20 12:47:13 +01:00
Julian Eisel dfbbf411d9 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-20 12:13:14 +01:00
Julian Eisel c437a8aea8 Revert release branch only commit after merge
buildbot/vdev-code-daily-coordinator Build done. Details
This is a revert of a revert, because the initial revert is only
supposed to be in the release branch.

This reverts commit 3eed00dc54.
2023-02-20 11:51:16 +01:00
Julian Eisel 74be1acc7a Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-20 11:35:11 +01:00
Jacques Lucke c25c46b77b Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-20 10:56:00 +01:00
Francesco Siddi 488a757c83 Icons: Minor maintenance for the icons source SVG
No design or functional changes. Just rename the layers for the last
two icons that were added so that they follow the naming pattern.
Also, update the layer order for another icon (was not alphabetic).

Pull Request #104954
2023-02-20 10:41:31 +01:00
Harley Acheson e1e2dae317 Revert 104438: Windows Spanning Multiple Monitors
buildbot/vdev-code-daily-coordinator Build done. Details
Revert of commits that allowed non-temp Blender windows to be saved
and restored that spanned multiple monitors on the Windows platform.
This causes problems with temp windows (like Preferences & Render) that
cannot currently be fixed.

See 104956 for much more detail

Differential Revision: #104956

Reviewed by Ray Molenkamp
2023-02-19 19:28:08 +01:00
Campbell Barton e61566137b Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-18 16:44:25 +11:00
Richard Antalik cc4587a9b4 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-18 05:14:33 +01:00
Campbell Barton be9104f7aa Cleanup: spelling, capitalize tags, use C-style comments & clarification
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-18 14:33:28 +11:00
Campbell Barton 6bd058189c Cleanup: quiet mypy warnings 2023-02-18 14:22:34 +11:00
Campbell Barton 162e6c7951 Fix error in project_info when make wasn't found
The warning referenced an undeclared variable.
2023-02-18 14:21:56 +11:00
Campbell Barton da9dff053e Build: fix error building xvidcore on Linux
The file renaming seems only to be needed on Windows,
so don't attempt it on other platforms.
2023-02-18 14:10:59 +11:00
Hans Goudey d9398bb53f Fix #104188: Screw modifier edges invisible in edit mode wireframe view
buildbot/vdev-code-daily-coordinator Build done. Details
Caused by 25237d2625, when the new "template" mesh created
in the modifier started to use the proper default value for CD_ORIGINDEX
layers rather than just zero. Zero isn't correct because it refers to
the first element, not "no element". For that we need to remove the
original index mapping arrays completely. There is some gray area
about whether that is allowed too, but it's best here to just keep the
old behavior working for now.
2023-02-17 16:24:49 -05:00
Hans Goudey 2ee5560b3f Spreadsheet: Add original indices to mesh debug information
Add the `CD_ORIGINDEX` layer to the columns potentially displayed
with the Blender debug value of 4001 from the debug menu. Also
separate the debug columns to separate functions.
2023-02-17 16:24:49 -05:00
Harley Acheson dd2ab55507 Fix 104816: Ensure Win32 visible title bar
buildbot/vdev-code-daily-coordinator Build done. Details
When creating Win32 windows, ensure that the caption bar is visible.

Differential Revision: #104848

Reviewed by Ray Molenkamp
2023-02-17 20:11:44 +01:00
Hans Goudey 8806d7551d Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-17 13:54:16 -05:00
Weizhen Huang d6774174e9 Fix compile error due to previous changes
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-17 19:14:47 +01:00
Dalai Felinto 4b6ce4512c Merge remote-tracking branch 'origin/blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-17 18:50:52 +01:00
Christoph Lendenfeld d7dd7ee24c Animation: Add "Frame Channel" operators
buildbot/vdev-code-daily-coordinator Build done. Details
When animating it is often useful to frame the Graph Editor/Dope Sheet to whatever frames are in a given channel.
This patch adds the option to frame on selected channels OR frame on whatever channel is under the cursor.

If a preview range is set it will only focus on keys in that range.

Supports FCurve and keyframe data

Frame to selected is called with
* Right click in the channel section -> Frame Selected Channels
* or in Channel → Frame Selected Channels
* or hitting . on the numpad

Frame to channel under cursor is done with

ALT + Middle Mouse Button

Co-authored-by: Christoph Lendenfeld <chris.lenden@gmail.com>
Pull Request #104523
2023-02-17 18:10:58 +01:00
Erik Abrahamsson e95ba8a70e Nodes: Add 'Online Manual' to context menu
buildbot/vdev-code-daily-coordinator Build done. Details
Finding the documentation for nodes can be time consuming.
By adding the online manual to the right click context menu in the node
editor the user gets easier access to the documentation.

Can also be used by custom nodes add-ons by registering a manual-map.

Pull Request #104833
2023-02-17 16:59:30 +01:00
Philipp Oeser a797c0c05c Merge branch 'blender-v3.5-release' 2023-02-17 16:44:32 +01:00
Philipp Oeser 0e4312ceec Merge branch 'blender-v3.5-release' 2023-02-17 16:33:59 +01:00
Julian Eisel 08f24553dc Cleanup: Remove accidentally merged TODO comment
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-17 15:05:39 +01:00
Sergey Sharybin 7838eb12c6 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-17 14:37:35 +01:00
Germano Cavalcante 69677827ff Fix #104347: Loop Cut Tool becomes impressive with GPU Subdivision
When updating a mesh, the GPU Subdivision code makes calls to
`GPU_indexbuf_bind_as_ssbo()`.

This may cause the current VAO index buffer to change due to calls from
`glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, ibo_id_)` in
`GPU_indexbuf_bind_as_ssbo()`.

The solution is to unbind the VAO (by calling `glBindVertexArray(0)`)
before creating the index buffer IBO.

Co-authored-by: Germano Cavalcante <grmncv@gmail.com>
Pull Request #104873
2023-02-17 14:30:29 +01:00
Sergey Sharybin 42f636f7e8 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-17 13:43:17 +01:00
Christoph Lendenfeld cb95f8aea7 Animation: Clamp V2D so keyframes cannot go offscreen
buildbot/vdev-code-daily-coordinator Build done. Details
In the Dope Sheet and the Timeline, it was possible to drag the view until the keyframes were completely out of view.
(Important to drag in the region with the keyframes, dragging in the channel box already did clamping)

This patch adds a clamping mechanism matching that of the channel box. That means the last channel will stick to the bottom of the view.

Co-authored-by: Christoph Lendenfeld <chris.lenden@gmail.com>
Pull Request #104516
2023-02-17 12:47:45 +01:00
Christoph Lendenfeld d4480fdfa3 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-17 11:45:49 +01:00
Campbell Barton bf7ccd43ca Cleanup: use PI and PI/2 in compatible_eul
buildbot/vdev-code-daily-coordinator Build done. Details
3.2 and 1.6 where used as rough equivalents to M_PI & M_PI_2, however
this raised questions about the significance of these values.

Running thousands of tests with generated euler inputs I wasn't able to
detect a difference so use M_PI & M_PI_2 instead.
2023-02-17 21:18:30 +11:00
Campbell Barton 773903f43c Docs: add doc-string for compatible_eul & improve code-comments 2023-02-17 21:18:30 +11:00
Christoph Lendenfeld 9b3ce950e6 Fix #95400: Crash when running Euler Filter on baked Curves
Fix a crash when using the Euler Filter from the Graph Editor on baked curves.

The crash happened because baked curves have no bezt array.
Skipping any curves where that was missing fixes the issue.

Co-authored-by: Christoph Lendenfeld <chris.lenden@gmail.com>
Pull Request #104858
2023-02-17 11:05:57 +01:00
Sergey Sharybin f6c6805226 Merge branch 'blender-v3.5-release' 2023-02-17 10:56:41 +01:00
Sergey Sharybin 932148ec54 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-17 10:15:28 +01:00
Jeroen Bakker 0250b40750 Cleanup: Silence compiler warning in VKShader.
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-17 09:54:57 +01:00
Campbell Barton c6ea00de3c BLI_math: correct the threshold for wrapping rotation in compatible_eul
Having a threshold well above PI would result in discontinuity in some
cases.

The discontinuity can be measured by generating euler values (both
random and interpolated rotations), then comparing the accumulated
difference.
Changing the threshold for wrapping rotations produces at least as good
or more compatible results.

This was reported as #17297 and fixed in [0], however the change was
only applied for the game-engine.

Ref !104856

[0]: ab44742cf3
2023-02-17 19:52:15 +11:00
Philipp Oeser 1a6943d553 Merge branch 'blender-v3.5-release' 2023-02-17 09:38:18 +01:00
Joseph Eagar 5de9a5dea5 Sculpt: Fix 104618: Topology automasking errors
buildbot/vdev-code-daily-coordinator Build done. Details
Sculpt island tags are now invalidated whenever the PBVH
is rebuilt.
2023-02-16 22:37:20 -08:00
Campbell Barton 9808d6abd8 Cleanup: loop over axes in compatible_eul
buildbot/vdev-code-daily-coordinator Build done. Details
There is no need to inline the loop.
2023-02-17 16:18:43 +11:00
Campbell Barton 6b84636ff2 Cleanup: unused warning 2023-02-17 16:18:31 +11:00
Joseph Eagar a52c0a252f Cleanup: fix warnings from last commit 2023-02-16 21:14:27 -08:00
Joseph Eagar c352eeb213 Sculpt: Add support for last operator panel to mesh filter operator
buildbot/vdev-code-daily-coordinator Build done. Details
* Repeat last operator now works for mesh filters.
* Added an iteration_count property to repeat the filter.
  This is especially useful when compounded with the repeat
  last operator tool.
* The mouse event history is stored for mesh filters
  with more advanced user input (mostly Smooth and Relax
  filters).
2023-02-16 20:54:56 -08:00
Ray molenkamp ef60b13c1f Deps: Optimize meson based deps
buildbot/vdev-code-daily-coordinator Build done. Details
meson defaults to debug builds [0] unless you tell it differently, this
diff changes the options for

- epoxy
- fribidi
- harfbuzz
- wayland
- wayland_protocols

to be optimized, mesa was already optimized

[0] https://mesonbuild.com/Builtin-options.html#core-options

Pull Request #104802
2023-02-17 01:43:25 +01:00
Jacques Lucke 9c79875f65 Cleanup: use BitSpan instead of BitVector where possible
buildbot/vdev-code-daily-coordinator Build done. Details
Passing a `BitSpan` is generally better because then the caller is not
forced to allocate the bits with a `BitVector`. Also, the `BitSpan` can
be stored in the stack, which removes one pointer indirection compared
to accessing bits through a `BitVector &`.
2023-02-17 00:47:02 +01:00
Jacques Lucke 891f47b801 BLI: new bit span data structure
This adds `BitSpan` and `MutableBitSpan`. They work essentially the same as
the normal `Span` and `MutableSpan`, but work on individual bits instead
(the smallest type `Span` can handle is one byte large).

This also splits up `BLI_bit_vector.hh` and introduces two new headers:
`BLI_bit_ref.hh` and `BLI_bit_span.hh`.

The goal here is to make working with dynamically sized bit masks more
convenient. I'm mainly working on this because I might want to use this
in #104629. It can also be used to cleanup function signatures that
currently take a reference to a `BitVector`. Like with `Span` vs. `Vector`,
it is better to pass a `BitSpan` to function than a `const BitVector &`.

Unit tests for the new code are included.

Pull Request #104671
2023-02-17 00:42:44 +01:00
Chris Blackbourn 8094d389f7 Cleanup: format
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-17 11:41:12 +13:00
Hans Goudey 09d3ebfd72 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-16 17:00:18 -05:00
Hans Goudey 8a51d61b44 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-16 15:20:00 -05:00
Nate Rupsis b2a536e9d7 Fix: Remove the rest of the tracks in the BKE_nlatrack_remove_and_free to free up the memory
buildbot/vdev-code-daily-coordinator Build done. Details
Fix: The BKE_nlatrack_remove_and_free (#104752) unit test leaks a little memory. Cleaning up the rest of the track list to ensure everything is freed.
Co-authored-by: Nate Rupsis <nrupsis@gmail.com>
Pull Request #104839
2023-02-16 20:24:33 +01:00
Julian Eisel 77c273ee37 Fix unused variable in release builds
buildbot/vdev-code-daily-coordinator Build done. Details
Assert is not needed in this case.
2023-02-16 18:57:50 +01:00
Hans Goudey 4cdf27cd96 Merge branch 'blender-v3.5-release' 2023-02-16 12:50:11 -05:00
Hans Goudey c2a0decbf3 Cleanup: Use Span to iterate over nodes instead of ListBase
buildbot/vdev-code-daily-coordinator Build done. Details
Similar to 5b8e2ebd97.
2023-02-16 12:12:38 -05:00
Hans Goudey 851de8170d Cleanup: Nodes: Avoid unnecessary const cast, use early return 2023-02-16 12:11:20 -05:00
Falk David 4e7a7e613a Cleanup: Fix operator description
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-16 17:47:04 +01:00
Nate Rupsis bf5a89f4e0 Cleanup: Adding in NLA Track Remove / Remove and free BKE methods
buildbot/vdev-code-daily-coordinator Build done. Details
This PR adds 2 new methods:
* BKE_nlatrack_remove
* BKE_nlatrack_remove_and_free

and modifies the existing `BKE_nlatrack_free` to remove the track list parameter.

This refactor splits out the removal / freeing into it's own methods, and provides a higher order method (BKE_nlatrack_remove_and_free) to conveniently call both.

Co-authored-by: Nate Rupsis <nrupsis@gmail.com>
Pull Request #104752
2023-02-16 17:31:09 +01:00
Falk David 55843cd64b Curves: Add select more/less
buildbot/vdev-code-daily-coordinator Build done. Details
This adds the "Select More/Less" operators for Curves. Both operators use the `select_adjacent` function to (de)select adjacent points.

Pull Request #104626
2023-02-16 17:02:43 +01:00
Julian Eisel 1e9564864c Cleanup: Refactor File/Asset Browser button dragging code
Code to set the dragging data for a button was mostly duplicated, they
share it now. The followup commit also needs an easy way to reuse the
logic, which is possible now.
2023-02-16 16:57:10 +01:00
Julian Eisel 6da512f0bc UI: Refactor how draggable part of button is determined
No longer use the existance of an image pointer inside the button, or
the the type of a button to decide if the entire button should be
draggable, or only its icon. This was rather sneaky, undocumented
behavior. Instead make this a proper option in the public UI API, and
enable it by default in specific cases to match the previous behavior.

This at least makes the behavior known and controllable in the API, and
not something that's just "secretly" done deep down in the button
handling code. I'd argue we should just use the entire button width by
default for dragging, but that would be a bigger change.
2023-02-16 16:57:10 +01:00
Falk David 2ccb820c7e Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-16 15:27:40 +01:00
Hans Goudey be6847e773 Cleanup: Remove read-only attribute type
buildbot/vdev-code-daily-coordinator Build done. Details
After the removal of the "normal" attribute providers, we no longer
use the concept of read-only attributes. Removing this status simplifies
code, clarifies the design, and removes potentially buggy corner cases.

Pull Request #104795
2023-02-16 15:08:28 +01:00
Hans Goudey 300c673a64 Geometry Nodes: Remove "normal" attribute
The "normal" was added before fields existed because we needed a
way to expose the data to geometry nodes. It isn't really an attribute,
because it's read-only and it's derived rather than original data.

No features have relied on the "normal" attribute existing, except
for the corresponding column in the spreadsheet. However, the
column in the spreadsheet is also inconsistent, since it isn't an
attribute but looks just like the other columns. The normal is
always visible in the spreadsheet.

Pull Request #104795
2023-02-16 15:08:28 +01:00
Pablo Vazquez 368559647f Merge branch 'blender-v3.5-release' 2023-02-16 15:01:29 +01:00
Hans Goudey d705c8ed57 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-16 08:30:52 -05:00
Harley Acheson c39b81d832 UI: Improvement to screen_find_area_xy
buildbot/vdev-code-daily-coordinator Build done. Details
In BKE_screen_area_map_find_area_xy (find a ScrArea by 2D location),
ignore edges by using screen verts instead of totrct

Differential Revision: #104680

Reviewed by Brecht Van Lommel
2023-02-16 02:38:57 +01:00
Richard Antalik 6e7242f00c Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-16 00:53:04 +01:00
Harley Acheson 10c0c2a156 Windows: allow windows to span multiple monitors
On the Windows platform allow Blender windows to be created that are
spread over multiple adjacent monitors.

---

On Windows we are quite feature-complete and stable for the creation and placement of multiple (non-temp) Blender windows. We correctly do so across multiple monitors no matter their arrangement, resolution, and scale.

However, there is another way that Blender could use multiple monitors - suggested by a core dev - which is to size a window so that it comprises multiple monitors. There are some advantages to this way of working because the one window remains constantly active and in focus. It also allows a single region (like a node editor) to be as large as possible.

But this way of working is not currently possible. That is because during window creation we constrain them to fit within the confines of the nearest single monitor. This has mostly been done for simplicity and safety. We don't want to restore a saved window to a position where it cannot be seen or used.

This patch addresses that. It allows windows to span multiple monitors, and does so safely by constraining the four corners of the window to be within the working area of any active monitor.  This means it allows the creation of single windows as shown below in blue (left two), but does not allow the one in orange (right):

![image.png](/attachments/b2a9dfca-d54c-467a-ab95-717df3b25051)

Note this has been previously (before gitea) reviewed and approved by Brecht.

Co-authored-by: Harley Acheson <harley.acheson@gmail.com>
Pull Request #104438
2023-02-16 00:41:26 +01:00
Campbell Barton ab63fe9eab Cleanup: format
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-16 10:04:09 +11:00
Campbell Barton a2551f23ad Cleanup: document & improve naming for Wayland's pending window actions 2023-02-16 10:02:23 +11:00
Miguel Pozo f178e3f849 Merge branch 'blender-v3.5-release' 2023-02-15 23:56:58 +01:00
Martijn Versteegh b1abc23899 Fix: Skip anonymous CustomData layers for the python API
Now that the UV map names are read from the evaluated mesh the names of
the anonymous layers would show up in the UV Map node and be accessible
via the python interface.

This changes the collection definition to skip anonymous layers.

Pull Request #104783
2023-02-15 23:54:50 +01:00
Hans Goudey 043bff144d Merge branch 'blender-v3.5-release' 2023-02-15 17:40:15 -05:00
Hans Goudey 7ad1d3156c Cleanup: Use simpler attribute transfer API in duplicate elements node
Instead of retrieving which attributes to transfer from the geometry set
which exists at a different abstraction level, get them from accessors
directly with a newer utility function. This removes boilerplate code
and makes the logic clearer for a future even more generic attribute
propagation API.
2023-02-15 17:38:47 -05:00
Hans Goudey 2cad80b0e5 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-15 16:13:35 -05:00
Hans Goudey 1e6ed77896 Merge branch 'blender-v3.5-release'
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-15 13:27:49 -05:00
Hans Goudey b07085fe3c Fix #104690: Evaluated positions user-after-free for copied poly curves
buildbot/vdev-code-daily-coordinator Build done. Details
The evaluated positions cache can live longer than a specific
`CurvesGeometry`, but for only-poly curves, it pointed to the positions,
which are freed when the curves are. Instead, use the same pattern
as the evaluated offsets and don't store the positions span, just return
it when retrieving evaluated positions.
2023-02-15 11:38:27 -05:00
Brecht Van Lommel 753eb9c20e Cycles: disable AMD GPU rendering binaries due to compiler bugs
There are known bugs in HIP compiler that are causing random build failures
when making changes to the Cycles kernel. This is preventing developers from
efficiently making improvements to Cycles.

For now Cycles AMD GPU rendering is disabled in Blender 3.6 until a good
solution is found, so that ongoing work like Principled v2 is not blocked.
We hope this can be resolved later on in the 3.6 release cycle.

Ref #104786
2023-02-15 17:24:37 +01:00
Julian Eisel 05b177b0b3 Revert changes to align asset library labels in menus
buildbot/vdev-code-daily-coordinator Build done. Details
This reverts 1116d821dc and part of 5bac672e1a.

The solution was made specifically for the 3.5 release, to avoid
breaking other cases. The previous commit addressed the problem properly
by letting the general menu code align labels where needed.
2023-02-15 16:09:08 +01:00
Julian Eisel 58752ad93c UI: Ensure menus with icons align all menu item labels
Usually in Blender, we try to align the labels of items within a menu,
if necessary by adding a blank icon for padding. This wasn't done for
menus generated from enum properties (RNA or custom property enums). Now
we do it whenever there is at least one item with an icon.
2023-02-15 16:09:08 +01:00
Julian Eisel 0f29a65744 Merge branch 'blender-v3.5-release' 2023-02-15 15:59:34 +01:00
Julian Eisel b9bf4700b0 Fix weird icon padding in asset library selector menu button
Since the menu doesn't automatically align the labels like other menus
and pulldowns in Blender, I manually made them align using the blank
icon. However the menu button would also include this blank icon now.

This is a specific fix for the 3.5 release. In the main branch I will
replace it with proper support for automatically aligning labels in such
menus.
2023-02-15 15:58:40 +01:00
Matti-Ranta 0b63136e63 Cleanup: delete .arcconfig
buildbot/vdev-code-daily-coordinator Build done. Details
Now that https://developer.blender.org/ has been decommissioned, arcconfig is no longer needed.

Pull Request #104768
2023-02-15 15:49:22 +01:00
Julian Eisel 7ae5bc142b Merge branch 'blender-v3.5-release' 2023-02-15 15:37:47 +01:00
Julian Eisel a6ebe0ca62 Fix possible compiler warning and linker error
Type was forward declared as class, but is a struct. GCC is quiet about this
Clang gives a warning about potential linker errors on MSVC.
2023-02-15 15:09:22 +01:00
Thomas Dinges d8112ec1ea Revert "Splash screen for Blender 3.5"
buildbot/vdev-code-daily-coordinator Build done. Details
This reverts commit a0b4da2bd0.
2023-02-15 14:17:00 +01:00
Thomas Dinges 6417da28a8 Revert "Blender 3.5 Beta:"
This reverts commit 904b7e4e41.
2023-02-15 14:16:43 +01:00
Thomas Dinges 33193093b1 Merge branch 'blender-v3.5-release' 2023-02-15 14:16:25 +01:00
Thomas Dinges d5d48a986b Release cycle: Bump version to 3.6.
buildbot/vdev-code-daily-coordinator Build done. Details
2023-02-15 13:49:56 +01:00