Revision 46fe43f by Sybren A. Stüvel October 18, 2021, 15:29 (GMT) |
Fix failing `AssetLibraryService` test by removing test code Remove the code I had hoped to fix in rB3edae09e, the fix was unreliable. No functional changes to Blender. |
Revision 3cbe921 by Hans Goudey October 18, 2021, 15:08 (GMT) |
Cleanup: Use simpler method to create attribute lookups Instead of switch statements, make use of generic virtual arrays so the code is shorter and easier to read. Differential Revision: https://developer.blender.org/D12908 |
Revision aef8ac7 by Philipp Oeser October 18, 2021, 15:00 (GMT) |
Cleanup: clang format |
Revision 0071001 by Philipp Oeser October 18, 2021, 14:52 (GMT) |
Fix T92246: sculpt crash displaying statistics in certain situations It seems possible to switch object selection (if `Lock Object Modes` is turned off) and end up with an object that has a SculptSession but a NULL PBVH. (I was not able to repro from scratch, but file from the report was clearly in that state). This would crash in displaying scene statistics. While there might be a deeper fix (making sure PBVH is available early enough -- possibly using `BKE_sculpt_object_pbvh_ensure`, `sculpt_update_object` or friends), there are also many checks in tools for PBVH, so the situation seems to be somewhat vaild/expected also in other places. So to fix this, just check for a non-NULL PBVH, returning early otherwise. Note: this leaves us with displaying 0/0 Faces & Vertices in the borked case until an operation takes place that updates the PBVH. Maniphest Tasks: T92246 Differential Revision: https://developer.blender.org/D12904 |
Revision fb88ff8 by Brecht Van Lommel October 18, 2021, 14:45 (GMT) |
Cleanup: fix compiler warning |
Revision b246f81 by Germano Cavalcante October 18, 2021, 14:41 (GMT) |
Fix T92311: Snap to faces in edit mode with x-ray enabled doesn't work The `use_occlusion_test` parameter test was accidentally removed in {rB91c33c8b9952} |
Revision dd689ee by Jacques Lucke October 18, 2021, 14:19 (GMT) |
Fix: dangling pointer caused use-after-free The old code only worked when built-in nodes are only unregistered at most once while Blender is running. However, this is not the case when running certain unit tests such as `AbstractHierarchy*` in `blender_test`. Found by Sybren, thanks. |
Revision ef7e21f by Pablo Vazquez October 18, 2021, 14:16 (GMT) |
UI: Reduce vertical margin between panels In an attempt to reduce scrolling. This can be re-visited if a kind of switch between "compact" and "comfortable" UI size is implemented in the future. |
Revision 3edae09 by Sybren A. Stüvel October 18, 2021, 13:48 (GMT) |
Asset Library Service: fix failing unit test On GCC in release mode (and maybe also debug mode without ASAN enabled), allocating an `AssetLibraryService` will reuse the space that should have just been freed. This made a test fail, as it was testing that new memory was allocated and not some old instance reused. To ensure that the calls that should allocate a new block of memory return a unique pointer, I added some dummy allocation to the test. No functional changes to Blender |
Revision 729b2d0 by Charlie Jolly October 18, 2021, 13:24 (GMT) |
Geometry Nodes: Add shader Musgrave texture node Port shader node musgrave texture Differential Revision: https://developer.blender.org/D12701 |
Revision de6bf5d by Jacques Lucke October 18, 2021, 13:22 (GMT) |
Nodes: support sharing node declarations between nodes Previously, every node had its own declaration. This isn't ideal, because it's often the case that all nodes of the same type have the same declaration. That's the case for all nodes using declarations currently. It will not be true for e.g. group nodes in the future. Sharing node declarations between nodes makes it a bit more efficient. Differential Revision: https://developer.blender.org/D12898 |
Revision e150f17 by Clément Foucault October 18, 2021, 13:15 (GMT) |
Fix T92250 EEVEE: Render crash with Motion Blur and Overscan This was caused by `DRW_view_data_texture_list_size_validate` which now delete everything from the render engine. This might change in the future but for now we just avoid calling it from the render loop (when using DRW_cache_restart). |
October 18, 2021, 13:01 (GMT) |
Fix T79005: Vertex color conversion operators changing the colors CD_PROP_COLOR vertex data is stored in scene linear while legacy vertex colors are srgb, so both operators also need to do this conversion Reviewed By: sergey Maniphest Tasks: T79005 Differential Revision: https://developer.blender.org/D8320 |
October 18, 2021, 12:36 (GMT) |
Animation: Motion Paths Refresh All Adds a button, Update All Paths, to the Motion Paths property tabs and will always show. The operator goes through all visible objects and updates their motion paths. The current implementation has a subtle functional change. Calculating or updating motion paths for armature objects (through the Object tab, not Armature tab) now also updates the paths for its bones. We could preserve the old behavior but it doesn't seem necessary. It seems more likely that the animator wants to update both anyways. Reviewed by: sybren Maniphest Tasks: T83068 Differential Revision: https://developer.blender.org/D11667 |
Revision f9113c4 by Sybren A. Stüvel October 18, 2021, 12:21 (GMT) |
Assets: add global `bke::AssetLibraryService` class Add `blender::bke::AssetLibraryService` class that acts like a blendfile-scoped singleton. It's allocated upon the first call to `BKE_asset_library_load` and destroyed in the LOAD-PRE handler. The `AssetLibraryService` ensures that edits to asset catalogs are not lost when the asset browser editor closes (or even reloads). Instead, the `AssetLibrary` pointers it owns are kept around as long as the blend file is open. Reviewed By: Severin Maniphest Tasks: T92151 Differential Revision: https://developer.blender.org/D12885 |
Revision 1f51037 by Johnny Matthews October 18, 2021, 11:45 (GMT) |
Geometry Nodes: Endpoint Selection Nodes The Endpoint Selection node allows for the Selection of an aribitrary number of endpoints from each spline in a curve. The start and end inputs are evaluated on the spline domain. The result is outputted as a boolean field on the point domain. Differential Revision: https://developer.blender.org/D12846 |
Revision 6f76bcc by Jacques Lucke October 18, 2021, 10:58 (GMT) |
Fix: missing use-attribute property in geometry nodes modifier The property was missing when a group input changed from not supporting fields to supporting fields. |
October 18, 2021, 09:59 (GMT) |
Nodes: add default value to string socket declaration Differential Revision: https://developer.blender.org/D12758 |
Revision eb0d216 by Jacques Lucke October 18, 2021, 09:46 (GMT) |
Geometry Nodes: decouple multi-function lifetimes from modifier Previously, some multi-functions were allocated in a resource scope. This was fine as long as the multi-functions were only needed during the current evaluation of the node tree. However, now cases arise that require the multi-functions to be alive after the modifier is finished. For example, we want to evaluate fields created with geometry nodes outside of geometry nodes. To make this work, `std::shared_ptr` has to be used in a few more places. Realistically, this shouldn't have a noticable impact on performance. If this does become a bottleneck in the future, we can think about ways to make this work without using `shared_ptr` for multi-functions that are only used once. |
Revision 746ee29 by Campbell Barton October 18, 2021, 08:29 (GMT) |
Fix T91700: Strips can be transformed in scope display modes Hide gizmos & prevent transform & selection in scope display. |
|