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-06-24Cleanup: Fix building warnings on gcc 9.4.0Dalai Felinto
Solution by Jacques Lucke
2022-06-24Fix T98925: Editor panels are brokenRichard Antalik
Commit 277fa2f441f4 added channels region to unintended editors if sequencer was used in area. This caused issues with some editors having 2 tool regions and non functioning side panel. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D15253
2022-06-24GHOST/Wayland: support for cursor warp with hidden/wrapped grab enabledCampbell Barton
As grab already uses it's own virtual coordinates, cursor warping can be used when grab is enabled. Currently nothing depends on this however it could be useful in future.
2022-06-24Cleanup: remove unused function WM_cursor_compatible_xyCampbell Barton
2022-06-24Fix T99021: Walk-mode doesn't work in WaylandCampbell Barton
Walk mode implemented it's own grab which relied on WM_cursor_warp to work (which isn't implemented for wayland). Resolve this by using WM_cursor_grab_{enable/disable}. Besides fixing Wayland this removes the need for workarounds: - Ensure the event received were after the event generated from warping. - Alternate logic that reset the "center" when using tablets. - Checking the cursor location was scaled by native-pixels on macOS. There is a minor change in behavior: on completion the cursor is left at the location walk-mode began instead of the center of the region.
2022-06-24Cleanup: add C++ compatible WL_ARRAY_FOR_EACH macroCampbell Barton
2022-06-24Cleanup: remove unused cursor struct members in GHOST/WaylandCampbell Barton
2022-06-24Cleanup: use const arguments for GHOST/WaylandCampbell Barton
2022-06-24GHOST: use GHOST_ASSERT for non-release buildsCampbell Barton
GHOST_ASSERT now matches BLI_assert, which is only ignored for release builds. Otherwise it prints or asserts when WITH_ASSERT_ABORT is enabled.
2022-06-24Docs: correct GHOST_TimerProcPtr time doc-stringCampbell Barton
2022-06-24Fix outdated pressure/tilt for tablet motions events under GHOST/WaylandCampbell Barton
Accumulate tablet data before generating an event using the 'frame' callback.
2022-06-23Fix T99083: audio bad in command-line video player (blender -a)Jörg Müller
There was a wrong sample size computation in PulseAudioDevice. The sample format is switched to float32 for the command-line player.
2022-06-23Cleanup: Make function staticHans Goudey
2022-06-23Geometry Nodes: Speed up Separate color node in RGB modeHans Goudey
This applies the same optimization as b8bd304bd45397b8c to the separate color node. I observed about a 50% improvement with 10 million values when only extracting one channel-- from about 17ms to 11ms.
2022-06-23Cleanup: make formatBrecht Van Lommel
2022-06-23Fix T97691: undefined behavior sanitizer warning for alignment in RNA functionsBrecht Van Lommel
Thanks Loren Osborn for investigating this and proposing solutions. Ref D14798
2022-06-23Fix T94621: Missing selection indication for virtual node socketsMax Edge
A small regression as a result of adding a custom outline to the empty virtual socket, which ended up overriding the colors when selected with Shift+LMB. Differential Revision: https://developer.blender.org/D15103
2022-06-23Spreadsheet: Support operations for filtering colorsAngel Bueno
Support choosing an operation when filtering colors, like the other types. Differential Revision: https://developer.blender.org/D15191
2022-06-23Cleanup: Remove unused array in vertex paint codeHans Goudey
Unused since 4f616c93f7cb8c8c8e038
2022-06-23Vertex paint mode tried to do a "fast update" by trying to avoid taggingHans Goudey
the mesh ID for a full update. The conditions it uses are troublesome: 1. There must be an evaluated mesh 2. The evaluated mesh's active byte color layer must equal the original's This logic doesn't make sense for a few reasons. First of all, the `mloopcol` pointer doesn't make sense in the context of color attributes (rather than the old vertex colors), since it only points to byte color attribute on face corners. Second, just because the layer pointers are equal doesn't mean something doesn't depend on the attribute's values. I think the best solution currently is to remove this "fast update" case and instead work on optimizing the general case. Also, T95842 suggests removing these pointers, and this is one of the last remaining uses of `Mesh.mloopcol`. Differential Revision: https://developer.blender.org/D15275
2022-06-23Mesh: Add an explicit "positions changed" functionHans Goudey
We store various lazily calculated caches on meshes, some of which depend on the vertex positions staying the same. The current API to invalidate these caches is a bit confusing. With an explicit set of functions modeled after the functions in `BKE_node_tree_update.h`, it becomes clear which function to call. This may become more important if more lazy caches are added in the future. Differential Revision: https://developer.blender.org/D14760
2022-06-23Geometry Nodes: Optimize selection for virtual array inputHans Goudey
This makes calculation of selected indices slightly faster when the input is a virtual array (the direct output of various nodes like Face Area, etc). The utility can be helpful for other areas that need to find selected indices besides field evaluation. With the face area node used as a selection with 4 million faces, the speedup is 3.51 ms to 3.39 ms, just a slight speedup. Differential Revision: https://developer.blender.org/D15127
2022-06-23Cyles: switch primitive.h inline hints to forceinlineXavier Hallade
This change helps decrease Intel GPU binaries compile time by 5-10 minutes without impacting other backends. Reviewed By: sergey, brecht Differential Revision: http://developer.blender.org/D15273
2022-06-23Fix T98975: Broken vertex paint mode operatorsHans Goudey
All of the operators in vertex paint mode didn't work properly with the new color attribute system. They only worked on byte color type attributes on the face corner domain. Since there are four possible combinations of domains and types now, it mostly ended up being simpler to convert the code to C++ and use the geometry component API for retrieving attributes, interpolating between domains, etc. The code changes ended up being fairly large, but the result should be simpler now. Differential Revision: https://developer.blender.org/D15261
2022-06-23Fix T99110: Crash after running view_all operator in VSERichard Antalik
Crash caused by NULL dereference, when `Editing` is not initialized. Check if data is initialized in poll function.
2022-06-23Fix T99091: Freeze when changing strip source with thumbnails enabledRichard Antalik
When input file is changed, `orig_height` and `orig_width` fields are reset, which causes thumbnail dimensions to be incorrectly calculated. Only draw thumbnails if both mentioned fields are non 0.
2022-06-23Fix T99028: crash deleting file output node with color management overrideBrecht Van Lommel
One case of copying image formats was not properly using BKE_image_format_copy. To fix this for existing .blend file we need to do versioning, ensuring the curve mapping is properly copied.
2022-06-23Cycles: unify math functions namesAndrii Symkin
This patch unifies the names of math functions for different data types and uses overloading instead. The goal is to make it possible to swap out all the float3 variables containing RGB data with something else, with as few as possible changes to the code. It's a requirement for future spectral rendering patches. Differential Revision: https://developer.blender.org/D15276
2022-06-23Fix T99027: Touch typing in text fields results in dropped key pressesCampbell Barton
Fix by always testing unhandled double-click events as press events, irrespective of the previous event type. **Details** Handling double-click events only ran when the previously pressed-key matched the current pressed-key. Originally when double-click support was added the previous type was compared (ignoring it's press/release value) and while not necessary it was harmless as it matched the check for double-click events being generated. As of [0] the logic for click/drag detection changed to ignore release events as release this could interrupt dragging. This made it possible to generate double-click events that failed the `event->prev_press_type == event->type` comparison. In these cases it was possible to generate double-click events that would not fall-back to a 'press' value when unhandled. [0]: 102644cb8cbb8b21e55643cebe2ed364885023a6
2022-06-23Cleanup: fix typo that deactivated clang-format in rna_brush.cJacques Lucke
2022-06-23Fix T98871: Drivers not updated when joining an armatureSebastian Parborg
If the some driver had been flagged as "invalid", the flag would not be cleared when joining armatures which could lead to now valid drivers still being flagged as invalid. Now we clear this invalid flag on all drivers to force a recheck after joining the armatures.
2022-06-23Animation: Add function to remove all FCurves from an ActionColin Basnett
Add a `BKE_action_fcurves_clear(action)` function, which removes all the Action's FCurves, and expose it as `ActionFCurves.clear()` in RNA. This is more ergonomic than calling `remove` on f-curves until the list is empty. Reviewed By: sybren Differential Revision: https://developer.blender.org/D14660
2022-06-23Armature: Add poll message explaining bone groups need pose modeColin Basnett
Add a poll message to the bone group operators, to explain they only work in pose mode. Before, the buttons would be greyed out with no explanation. Reviewed By: sybren Differential Revision: https://developer.blender.org/D15119
2022-06-23Dopesheet: Add Custom Properties panelColin Basnett
Adds a custom property panel for the active `Action` to the Dopesheet editor. There was previously no way to edit these properties outside of the Python API. This panel will show up when `context.active_object.animation_data.action` is set. Reviewed By: sybren Differential Revision: https://developer.blender.org/D14646
2022-06-23Cycles: Add diagnostic tracing of MTLLibrary compilation timeMichael Jones
Reviewed By: sergey Differential Revision: https://developer.blender.org/D15268
2022-06-23Fix key repeat continuing after a window loses focus for GHOST/WaylandCampbell Barton
Also remove NULL checks in keyboard enter/leave handlers, as they didn't serve any purpose.
2022-06-23LineArt: Cleanup minor warnings from variable type changes.Yiming Wu
2022-06-23Fix key repeat behavior for GHOST/WaylandCampbell Barton
- Respect modifier keys (Shift press/release didn't change the case). - Changing modifiers resets the timer instead of canceling key-repeat. - Releasing keys (besides the key being repeated) resets the timer instead of canceling key repeat. This makes key-repeat behave the same way as GTK & WIN32 text input.
2022-06-23Cleanup: Clang tidyHans Goudey
Mainly duplicate includes and else after return.
2022-06-23Cleanup: Use const argumentsHans Goudey
Also use Curves as an argument instead of Object, since it's more specific to this situation.
2022-06-23Cycles: Tidy of KernelData patchup codeMichael Jones
Reviewed By: sergey Differential Revision: https://developer.blender.org/D15267
2022-06-23Cycles: Distinguish Apple GPUs by core countMichael Jones
This patch suffixes Apple GPU device names with `(GPU - # cores)` so that variant GPUs with the same chipset can be distinguished. Currently benchmark scores for these M1 family GPUs are being incorrectly merged: - M1: 7 or 8 cores - M1 Pro: 14 or 16 cores - M1 Max: 24 or 32 cores - M1 Ultra: 48 or 64 cores Reviewed By: brecht, sergey Differential Revision: https://developer.blender.org/D15257
2022-06-22Cleanup: remove unused sculpt texture cache generationBrecht Van Lommel
This has not been used since 5505697ac in 2010.
2022-06-22D14974: Tip roundness - match square and round brush radiusRamil Roosileht
Oneliner for T97961. Square sculpt brushes no longer fit inside the radius circle, they now use the radius for the square size. {F13082514} Note: original patch was modified to scale PBVH search radius to avoid artifacts. Differential Revision: https://developer.blender.org/D14974 Reviewed By: Joseph Eagar & Julien Kaspar Ref: D14974
2022-06-22Cleanup: simplify macOS make deps instructionsBrecht Van Lommel
2022-06-22Fix T97675: slow zoom in node editor with Continue zoom methodPatrick Huang
Speed increased by 10x, making it visually similar to other editors. Differential Revision: https://developer.blender.org/D15209
2022-06-22Fix T98773: GPU Subdivision breaks auto selection in UV edit modeKévin Dietrich
When GPU subdivision is used, and the modifier is not set to be applied on the cage, UV selection is not synced with the face selection in the viewport. This happens because the extraction, despite being in edit mode, is set to `MESH` instead of `BMESH` (or `MAPPED` in some cases) like for CPU subdivision, and since the mesh is not always synchrnised with the BMesh the edit mode flags are not always updated. With GPU subdivision, when creating the `MeshRenderData`, the condition `has_mdata && do_final && editmesh_eval_final != editmesh_eval_cage` is true which forces the `MESH` extraction. Following comment in D14485, this replace the `has_mdata` in the condition with `use_mapped` which solves the issue. Differential Revision: https://developer.blender.org/D15248
2022-06-22Fix T98956: Crash removing some builtin attributesHans Goudey
For example, the "id" attribute is stored as a named attribute. If it doesn't exist already, `layer_index` was uninitialized, causing issues with `CustomData_free_layer`. The fix is to use the generic function to free a named layer in that case. Eventually the other case will go away as T95965 is finished.
2022-06-22Fix: Memory leak writing to builtin attribute with wrong typeHans Goudey
The store named attribute node creates a new buffer to evaluate the field into. When creating the attribute with that buffer fails, if must be freed.
2022-06-22Cleanup: Remove unused function argumentsSergey Sharybin
Solves the corresponding compiler warning.