Revision 22959dc by Campbell Barton December 10, 2020, 08:31 (GMT) |
Fix missing custom-property escaping for whole-character keying set Custom properties with characters that needed escaping had f-curves created with invalid paths. |
Revision 83f5a0b by Campbell Barton December 10, 2020, 06:57 (GMT) |
Fix missing string escaping in RNA_path_append This was escaping the '[' character, which isn't needed for quoted text. |
Revision e21f113 by Campbell Barton December 10, 2020, 06:18 (GMT) |
Tests: fix 'ctest -j' running multiple tests at once bl_blendfile_io & bl_blendfile_liblink shared a filename, which could make these tests fail. |
Revision 2fbf9cb by Campbell Barton December 10, 2020, 06:10 (GMT) |
Cleanup: remove unused function bc_find_bonename_in_path |
Revision d97845a by Campbell Barton December 10, 2020, 05:56 (GMT) |
BLI_string: return NULL from BLI_str_quoted_substrN on failure This was returning an empty allocated string, however almost all callers checked if the return value was NULL before freeing, making for misunderstandings on the intended use of this function. BCAnimationSampler::initialize_curves for example detected the f-curves animation type to 'bone' based on a non-NULL return value which never failed. Also fixes two leaks where the the result of BLI_str_quoted_substrN wasn't freed. |
Revision 3ec7cf6 by Campbell Barton December 10, 2020, 05:12 (GMT) |
Fix BLI_str_quoted_substrN use with escaped strings BLI_str_quoted_substrN didn't unescape the resulting string, yet all callers were using this with animation paths which are created using BLI_str_escape(). - Fix BLI_str_quoted_substrN use with escaped strings by calling BLI_str_unescape(). Note that it's possible we want an a version of this function that keeps escape characters. This could be added if it's required. - Fix end quote detection using BLI_str_escape_find_quote checking for `"` isn't reliable since an even number of back-slashes before a quote means it's not escaped. |
Revision 2814cdb by Campbell Barton December 10, 2020, 04:06 (GMT) |
BLI_string: extract quote utility into BLI_str_escape_find_quote Duplicate logic for this exists in BLI_str_quoted_substrN, which doesn't properly support escaping. |
Revision 564ef82 by Campbell Barton December 10, 2020, 03:55 (GMT) |
Cleanup: use snake-case instead of camel-case |
Revision 51cbd5d by Campbell Barton December 10, 2020, 03:55 (GMT) |
Cleanup: avoid '_ln' suffix Use '_len' or '_line_number'. |
Revision c5aaa11 by Campbell Barton December 10, 2020, 03:55 (GMT) |
Cleanup: declare variables when used (bpy) |
Revision ed2556e by Campbell Barton December 10, 2020, 03:55 (GMT) |
Cleanup: declare variables when used (RNA) |
Revision aef9243 by Campbell Barton December 10, 2020, 03:55 (GMT) |
Cleanup: remove unnecessary vars in RNA token reading |
Revision 65f1391 by Campbell Barton December 10, 2020, 03:40 (GMT) |
Cleanup: rename BLI_strescape to BLI_str_escape Prepare for `BLI_str_unescape` which doesn't read well without the separator. |
Revision 7fc1d76 by Campbell Barton December 10, 2020, 03:40 (GMT) |
Fix BLI_str_escape with control characters, add unit tests |
Revision 15d8016 by Campbell Barton December 10, 2020, 03:40 (GMT) |
BLI_string: add BLI_str_unescape utility function Performs the reverse of BLI_str_escape. This allows logic to be removed from RNA path handling. |
Revision 82e1b65 by Campbell Barton December 10, 2020, 03:40 (GMT) |
BLI_string: support escaping additional control character Add support for escaping a, b & f for completeness, currently it's not required. |
Revision 2f86518 by Campbell Barton December 10, 2020, 03:40 (GMT) |
RNA: use BLI_str_unescape utility for parsing escaped strings |
Revision b5bc9d8 by Campbell Barton December 10, 2020, 03:40 (GMT) |
PyAPI: add bpy.utils.unescape_identifier Utility to perform the reverse of `bpy.utils.escape_identifier` |
Revision 548e962 by Kévin Dietrich December 10, 2020, 01:31 (GMT) |
Fix T82852: Cycles crashes when editing a mesh with adaptive subdivision The issue is caused by stale data on the Mesh Node which is not cleared during synchronizing since the socket API refactor so that we can detect changes. However, synchronization only updates the sockets of the Mesh, so other properties were left with outdated values. This caused an underflow when computing attribute size for undisplaced coordinates as it was using the current number of vertices minus the previous count of subdivision vertices, which at this point should be 0. Added a simple method to clear non socket data. Also modified Mesh.add_undisplaced to always use an ATTR_PRIM_GEOMETRY as the data is not subdivided yet and it avoids any further issues regarding computing attribute sizes. |
Revision b379f93 by Julian Eisel December 9, 2020, 22:43 (GMT) |
Cleanup: Use const for filter queries |
|
|
|


Master Commits
MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021