August 29, 2021, 21:39 (GMT) |
Geometry Nodes: Allow for one vertex in grid node This commit allows setting the number of vertices in either direction to 1, so that the primitive grid node will create a line instead of a grid. To avoid confusion the soft limits of the input sockets are not changed, so this is purely an increase in flexibility for when it is helpful. Differential Revision: https://developer.blender.org/D11772 |
August 29, 2021, 21:30 (GMT) |
Fix: Circle mesh primitive outer edges do not render The outer edges created om the circle mesh primitive node weren't marked with the flags that makes them show in wireframe mode. Differential Revision: https://developer.blender.org/D12152 |
Revision 2f7258d by Campbell Barton August 29, 2021, 02:11 (GMT) |
Fix BLI_strncpy_wchar_from_utf8 result on Windows This function was documented to return the length but returned an error value for WIN32. While this doesn't cause any bugs at the moment, it could cause problems in the future. Oversight in 5496d8cd361385268316f91afa150e69b5345ab0. |
Revision 4256eee by Aaron Carlisle August 28, 2021, 20:38 (GMT) |
UI: Timecodes: Rename "No TC in use" to "None" Differential Revision: https://developer.blender.org/D12296 |
Revision 457302b by Campbell Barton August 28, 2021, 12:50 (GMT) |
BLI_string_utf8: add buffer size arg to BLI_str_utf8_from_unicode Besides helping to avoid buffer overflow errors this reduces complexity of BLI_str_utf32_as_utf8 which needed a special loop for the last 6 characters to avoid writing past the buffer bounds. Also add BLI_str_utf8_from_unicode_len which only returns the length. |
Revision 079791d by Campbell Barton August 28, 2021, 11:33 (GMT) |
Revision 0b6be26 by Campbell Barton August 28, 2021, 09:21 (GMT) |
BLF: remove checks for blend file relative paths This was added in b24712a9ca6fa807660a02d6988269748daecdbf but is no longer needed as of efc129bc827558e55cf4619b8e2ca502342338f3. Further, this wasn't reliable as it could fail on linked library data which has a different base directory. Assert when blend file relative paths are passed to BLF (matching imbuf file loading). |
Revision eae4e22 by Hans Goudey August 27, 2021, 19:33 (GMT) |
Cleanup: Remove redundant null check |
Revision 276a862 by Hans Goudey August 27, 2021, 19:31 (GMT) |
Fix failing alembic test after IDProperty UI data refactor The default float IDProperty min value rB8b9a3b94fc148d19 for when there is no UI data was FLT_MIN instead of -FLT_MAX, which meant that animated custom property values couldn't be less than zero unless they had their UI data values edited previously. That's a mistake I won't make again! Also change the int minimums from -INT_MAX to INT_MIN to sanitize the whole situation. |
Revision 400605c by Harley Acheson August 27, 2021, 18:25 (GMT) |
UI: Reduce Node Contents Jiggling When Moved This patch just clamps and rounds node contents and socket locations so they don't appear to jiggle around when you move them. This issue happens because node sizing and positioning are in floats while text content must be pixel-aligned. See D11684 for more details and comparisons. Differential Revision: https://developer.blender.org/D11684 Reviewed by Julian Eisel |
Revision 071007e by Pablo Vazquez August 27, 2021, 17:49 (GMT) |
UI: Fix summary overlay wrong range and overlap in Dopesheet The overlay was drawn twice on top of each other making it hard to see, hard to theme, and making it more prominent in the wrong areas (before frame 0, not even start frame). The comment in the code was also wrong since it said "frame one" but it was 0. Checked with the Animation module team that it's better to use start/end frame range instead of frame 0. There is a TODO note to de-duplicate this section eventually so I left it there. This fix is currently done for Grease Pencil and Mask modes, but it should also be fixed for the regular Dopesheet mode (in line 244 if anyone wants to do it). |
Revision 8b9a3b9 by Hans Goudey August 27, 2021, 13:27 (GMT) |
Refactor IDProperty UI data storage The storage of IDProperty UI data (min, max, default value, etc) is quite complicated. For every property, retrieving a single one of these values involves three string lookups. First for the "_RNA_UI" group property, then another for a group with the property's name, then for the data value name. Not only is this inefficient, it's hard to reason about, unintuitive, and not at all self-explanatory. This commit replaces that system with a UI data struct directly in the IDProperty. If it's not used, the only cost is of a NULL pointer. Beyond storing the description, name, and RNA subtype, derived structs are used to store type specific UI data like min and max. Note that this means that addons using (abusing) the `_RNA_UI` custom property will have to be changed. A few places in the addons repository will be changed after this commit with D9919. **Before** Before, first the _RNA_UI subgroup is retrieved the _RNA_UI group, then the subgroup for the original property, then specific UI data is accessed like any other IDProperty. ``` prop = rna_idprop_ui_prop_get(idproperties_owner, "prop_name", create=True) prop["min"] = 1.0 ``` **After** After, the `id_properties_ui` function for RNA structs returns a python object specifically for managing an IDProperty's UI data. ``` ui_data = idproperties_owner.id_properties_ui("prop_name") ui_data.update(min=1.0) ``` In addition to `update`, there are now other functions: - `as_dict`: Returns a dictionary of the property's UI data. - `clear`: Removes the property's UI data. - `update_from`: Copy UI data between properties, even if they have different owners. Differential Revision: https://developer.blender.org/D9697 |
Revision 3f5e0f7 by Sergey Sharybin August 27, 2021, 13:07 (GMT) |
Fix crash sampling render result before any pixel was rendered Caused by recent lazy render result passes allocation change. |
Revision 57e8714 by Sergey Sharybin August 27, 2021, 12:44 (GMT) |
Fix shadowing in sequencer iterator The __LINE__ was not properly expanded. |
August 27, 2021, 11:05 (GMT) |
Fix "toggle shading" op not updating VR view Reason was that the notifier did not set the NS_VIEW3D_SHADING subtype, which the VR view listens for for a shading update. In the case of "toggle xray", a notifier was absent altogether. |
Revision 59cd9c6 by Richard Antalik August 27, 2021, 10:59 (GMT) |
VSE: Transform overwrite mode Add mode to overwrite strips on overlap instead of resolving overlap. When overlap is created, 3 things can happen: - On partial overlap, handles of overlapped strip are moved - On complete overlap with smaller strip, overlapped strip is split - On complete overlap with larger strip, overlapped strip is removed This mode can be enabled in header. Reviewed By: fsiddi, mano-wii Differential Revision: https://developer.blender.org/D11805 |
Revision 7f7370f by Jacques Lucke August 27, 2021, 09:58 (GMT) |
Cleanup: quiet maybe-used-uninitialized warning |
Revision 6845aad by Philipp Oeser August 27, 2021, 09:02 (GMT) |
Fix T90907: RNA pointers for material slots are not unique across IDs Caused by {rB1a81d268a19f}. This caused e.g. ALT-clicking the 'Link' button to not propagate to other selected objects (same as the 'Copy To Selected' context menu entry). If these are not unique across IDs, checks in ui_selectcontext_begin() or copy_to_selected_button() could fail. Now offset by ID pointer. thx @JacquesLucke for clarification on the POINTER_* macros (and why not to use them)! Maniphest Tasks: T90907 Differential Revision: https://developer.blender.org/D12321 |
August 27, 2021, 08:16 (GMT) |
Fix XR action map index initialization This reverts 151eed752b01. Originally thought it was necessary to initialize selected/active indices to -1 to prevent out-of-bounds list access, but this is not needed since null checks are already performed after obtaining list members via BLI_findlink(). In addition, leaving indices zero-initialized facilitates use of the Python API, for example when displaying action map information in a UI list. |
Revision 7652ee4 by Campbell Barton August 27, 2021, 07:29 (GMT) |
Cleanup: clang-tidy |
|