October 20, 2021, 13:00 (GMT) |
Cleanup: use an array for wmEvent cursor position variables Use arrays for wmEvent coordinates, this quiets warnings with GCC11. - `x, y` -> `xy`. - `prevx, prevy` -> `prev_xy`. - `prevclickx, prevclicky` -> `prev_click_xy`. There is still some cleanup such as using `copy_v2_v2_int()`, this can be done separately. Reviewed By: campbellbarton, Severin Ref D12901 |
October 20, 2021, 12:56 (GMT) |
Cleanup: unused parameters, `nullptr` instead of `NULL` in cpp code... |
October 20, 2021, 12:50 (GMT) |
Fix T91243: Object modes are not loaded correctly in inactive scenes. Do not try to preserve edit modes of objects in non-active scenes (at least for now), except for Pose mode. Code was also slitghly refactored (reducing indent levels), and comments about expected behaviors and known limitations were added. |
October 20, 2021, 12:19 (GMT) |
Cleanup: unused function |
October 20, 2021, 12:07 (GMT) |
Fix crash when reloading with placement tool enabled Paint Cursors are already released at this stage. |
October 20, 2021, 12:04 (GMT) |
HIP device code cleanup and fix for high VRAM usage This patch cleans up code for HIP device and makes it more consistent with the CUDA code. It also fixes the issue with high VRAM usage on AMD cards using HIP allowing better performance and usage on cards like 6600XT. Added a check in intern/cycles/kernel/bvh/bvh_util.h to prevent compiler error with hipcc Reviewed By: brecht, leesonw Maniphest Tasks: T92124 Differential Revision: https://developer.blender.org/D12834 |
October 20, 2021, 11:38 (GMT) |
Asset Browser: Show current file assets in other asset libraries if contained If the current file is saved within an asset library, showing that asset library in the Asset Browser will also display the assets from this current file now. In fact, it's the latest state of the open file, including all unsaved modifications. These assets will show a little Blender icon in the preview image, which is our usual icon for current file data. Note that this means an important design change: The "Current File" asset library isn't the only place to edit assets from anymore. From now on assets from the current file can also be edited in the context of the full asset library. See T90193 for more info. Technical info: Besides just including the assets from the current `Main`, this requires partial clearing and reading of file-lists, so that asset operations (e.g. removing an asset data-block) doesn't require a full reload of the asset library. Maniphest Task: https://developer.blender.org/T90193 |
October 20, 2021, 11:34 (GMT) |
October 20, 2021, 11:28 (GMT) |
View3D: Cursor Snap Refactor Make the snap system consistent with the placement tool and leak-safe. **Changes:** - Store `SnapCursorDataIntern` in a `static` variable; - Initialize (lazily) `SnapCursorDataIntern` only once (for the keymap). - Move setup members of `V3DSnapCursorData` to a new struct `V3DSnapCursorState` - Merge `ED_view3d_cursor_snap_activate_point` and `ED_view3d_cursor_snap_activate_plane` into `state = ED_view3d_cursor_snap_active()` - Merge `ED_view3d_cursor_snap_deactivate_point` and `ED_view3d_cursor_snap_deactivate_plane` into `ED_view3d_cursor_snap_deactive(state)` - Be sure to free the snap context when closing via `ED_view3d_cursor_snap_exit` - Use RNA properties callbacks to update the properties of the `"Add Primitive Object"` operator |
October 20, 2021, 11:22 (GMT) |
Fix missing null-terminator in BLI_string_join_arrayN Although the documentation says so, the null-terminator was missing. This could cause crashes when logging shader linking errors as shader sources are empty in this case. |
October 20, 2021, 10:38 (GMT) |
Fix T91808: Batch Generate Previews fails Caused by the Cycles-X merge. The old style of tile rendering was removed, leaving the script to error out trying to set the tile size. Tile rendering came back in a new form (but only really relevant for large resolution rendering), so now leave setting auto_tile & tile_size alone (since previews are rendered at PREVIEW_RENDER_DEFAULT_HEIGHT 128 -- which should never make a difference here). Maniphest Tasks: T91808 Differential Revision: https://developer.blender.org/D12937 |
October 20, 2021, 10:31 (GMT) |
Cleanup: Remove unused file-list array info members |
October 20, 2021, 10:31 (GMT) |
UI: Activate parent when active child is collapsed Previously, when an item was active and its parent (or grand parent, etc.) was collapsed, the active item would simply not be visible anymore. It seemed like there was no active item. So instead, change the just collapsed parent to be the active item then, so the active item stays visible. |
October 20, 2021, 10:31 (GMT) |
Asset Browser: UI polish for the asset metadata sidebar * Show asset path in a (read only) text button. Makes it possible to see the full path in the tooltip, brings support for copying the path and integrates better with the sourrounding layout. Previous label needed lots of space to show the full path without clipping. * Remove "Details" panel, it only contained one item (description). That is moved next to the name and asset path button. * Use property split layout for name source and description buttons. Now that there are multiple buttons, it's better to have a label for them. * Always show operators for asset previews, just gray them out if not applicable instead of hiding. Keeps the layout consistent and graying out is less confusing than hiding UI elements. |
October 20, 2021, 09:58 (GMT) |
Split and extend unit tests for vec_roll_to_mat3_normalized. Separate the huge test into huge logical parts and add more cases to check. Also add a utility to check that the matrix is orthogonal, with arbitrary epsilon values and calculations in double. A couple of tests deliberately fail, to be fixed in following commits. Ref D9551 |
October 20, 2021, 09:58 (GMT) |
October 20, 2021, 09:58 (GMT) |
Fix precision issues and a bug in vec_roll_to_mat3_normalized. When the input vector gets close to -Y, y and theta becomes totally unreliable. It is thus necessary to compute the result in a different way based on x and z. The code already had a special case, but: - The threshold for using the special case was way too low. - The special case was not precise enough to extend the threshold. - The special case math had a sign error, resulting in a jump. This adds tests for the computation precision and fixes the issues by adjusting the threshold, and replacing the special case with one based on a quadratic Taylor expansion of sqrt instead of linear. Replacing the special case fixes the bug and results in a compatibility break, requiring versioning for the roll of affected bones. Differential Revision: https://developer.blender.org/D9551 |
October 20, 2021, 09:58 (GMT) |
Link/Append tests: properly support and test with/without 'recursive' behaviors. This requires adding an extra ('indirect') library to the test cases for append. Aftermath of T92224. |
October 20, 2021, 09:36 (GMT) |
Tracking: support editing all selected tracks This patch adds a "selected_movieclip_tracks" context member and enables editing properties of multiple selected tracks via the usual Alt-click editing (as well as the "Copy To Selected" operator). Both use UI_context_copy_to_selected_list() to gather a list of other selected items [which are now taken via said new context member]. Strictly speaking, this could be done without the context member as well [just gathering other selected tracks in UI_context_copy_to_selected_list() without relying on a context member], but this might come in handy in other places (e.g. Addons). note: some could be desired for markers (e.g. editing pattern/search areas of all selected track markers, but since this is burried in a uiTemplate, this is a bit more work for another patch). Differential Revision: https://developer.blender.org/D12923 |
October 20, 2021, 07:21 (GMT) |
View3D: expose snap selection as a utility funciton This makes it convenient to position appended objects, see: T92111. |
|
|
|


Master Commits
MiikaHweb | 2003-2021