December 18, 2021, 23:18 (GMT) |
Cleanup: Clang tidy lamda function name |
December 18, 2021, 19:42 (GMT) |
Cleanup: Move weld modifier to C++ This moves `MOD_weld.cc` to C++, fixing compiler warnings coming from the change. It also goes a little bit further and converts the code to use C++ data structures: `Span`, `Array`, and `Vector`. This makes the code more shorter and easier to reason about, and makes memory maneagement more automatic. Differential Revision: https://developer.blender.org/D13618 |
December 18, 2021, 19:41 (GMT) |
Fix: Build error from missing include |
December 18, 2021, 19:31 (GMT) |
Fix: Link drag search missing field nodes from function nodes When dragging from the inputs of function nodes, other function nodes wouldn't connect, because their socket declaration field types weren't set correctly. Instead, they relied on code properly checking the *node* declaration's `is_function_node()` method. However, that increases complexity and requires passing the node instead of just the socket in more places. Instead, set the proper field types in the socket declaration during building. Differential Revision: https://developer.blender.org/D13600 |
December 18, 2021, 19:27 (GMT) |
Fix T94173: Missing update for frame node size Before d56bbfea7b420d7, nodes were updated (size calculated and buttons added) in reverse order. Instead, now calculate the size of frame nodes after all other nodes. Separating the drawing further may be a good step to removing the O(n^2) loop later on. |
December 18, 2021, 17:36 (GMT) |
Cleanup: compiler warnings with clang Includes use of memcpy to avoid warnings about deprecated members. |
December 18, 2021, 04:53 (GMT) |
Fix T94215: compositer denoise node UI wrongly shows as disabled After recent refactoring in 4e98d974b596. |
December 17, 2021, 23:55 (GMT) |
GPU: add memory barriers for vertex and index buffers This adds memory barriers to use with `GPU_memory_barrier` to ensure that writes to a vertex or index buffer issued before the barrier are completed after it, so they can be safely read later by another shader. `GPU_BARRIER_VERTEX_ATTRIB_ARRAY` should be used for vertex buffers (`GPUVertBuf`), and `GPU_BARRIER_ELEMENT_ARRAY` should be used for index buffers (`GPUIndexBuf`). Reviewed By: fclem Differential Revision: https://developer.blender.org/D13595 |
December 17, 2021, 22:43 (GMT) |
Function to return a list of keyframe segments Add a function that returns a list of keyframe segments A segment being a continuous selection of keyframes Will be used by future operators in the graph editor Reviewed by: Sybren A. St�vel Differential Revision: https://developer.blender.org/D13531 Ref: D13531 |
December 17, 2021, 22:13 (GMT) |
Fix T94184: Outliner: Collection dragging tooltip is not updating 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. |
December 17, 2021, 16:31 (GMT) |
Fix T94116: Drivers can have multiple variables with same name The RNA setter now ensures that driver variables are uniquely named (within the scope of the driver). Versioning code has been added to ensure this uniqueness. The last variable with the non-unique name retains the original name; this ensures that the driver will still evaluate to the same value as before this fix. This also introduces a new blenlib function `BLI_listbase_from_link()`, which can be used to find the entire list from any item within the list. Manifest Task: T94116 Reviewed By: mont29, JacquesLucke Maniphest Tasks: T94116 Differential Revision: https://developer.blender.org/D13594 |
December 17, 2021, 16:03 (GMT) |
Add ID_remapper. Currently not being used. |
December 17, 2021, 15:58 (GMT) |
Merge branch 'master' into asset-greasepencil |
December 17, 2021, 15:47 (GMT) |
Theme: Node Group color only needs RGB, not RGBA The node group alpha theme was used for the overlay drawing in the node editor. Since this was removed (919e513fa8f) the alpha channel doesn't need to be exposed anymore. Reported as part of T93654. |
December 17, 2021, 15:40 (GMT) |
Cleanup: Use signed integers in the weld modifier The style guide mentions that unsigned integers shouldn't be used to show that a value won't be negative. Many places don't follow this properly yet. The modifier used to cast an array of `uint` to `int` in order to pass it to `BLI_kdtree_3d_calc_duplicates_fast`. That is no longer necessary. Differential Revision: https://developer.blender.org/D13613 |
December 17, 2021, 14:46 (GMT) |
Cleanup: quiet warning due to incompatible pointer types |
December 17, 2021, 14:42 (GMT) |
Allocator: simplify using guarded allocator in C++ code Using the `MEM_*` API from C++ code was a bit annoying: * When converting C to C++ code, one often has to add a type cast on returned `void *`. That leads to having the same type name three times in the same line. This patch reduces the amount to two and removes the `sizeof(...)` from the line. * The existing alternative of using `OBJECT_GUARDED_NEW` looks a out of place compared to other allocation methods. Sometimes `MEM_CXX_CLASS_ALLOC_FUNCS` can be used when structs are defined in C++ code. It doesn't look great but it's definitely better. The downside is that it makes the name of the allocation less useful. That's because the same name is used for all allocations of a type, independend of where it is allocated. This patch introduces three new functions: `MEM_new`, `MEM_cnew` and `MEM_delete`. These cover the majority of use cases (array allocation is not covered). The `OBJECT_GUARDED_*` macros are removed because they are not needed anymore. Differential Revision: https://developer.blender.org/D13502 |
December 17, 2021, 14:42 (GMT) |
Cleanup: use new c++ guarded allocator api in some files |
December 17, 2021, 14:21 (GMT) |
UI: make Remap User dialog in outliner wider The previous size was too small for common object names. Differential Revision: https://developer.blender.org/D13604 |
December 17, 2021, 14:04 (GMT) |
UI: Fix node socket alignment in some cases The patch fixes some misalignments in the nodes' sockets/options recently introduced in 26d2caee3ba0, while maintaining the original fix for T92268. The original fix made the top padding always of the same size; while that works when the first row of the other node is `Socket | Socket`, it doesn't for other more common cases, `like Socket | Node Option`, where the text results misaligned. Differential Revision: https://developer.blender.org/D13451 |
|