Revision cb6234f by Hans Goudey October 3, 2020, 16:25 (GMT) |
Property Search: Set panel expansion when tab changes This commit makes the panel expansion set based on the search results when the active tab in the properties editor changes. The multi-tab search patch (D8859) actually doesn't handle this because it uses a different code path. This feature uncovered a subtle but fairly significant issue with the implementation of property search (More details in T81113). Basically, the search needed multiple redraws to properly display the expansion of panels based on the search results. Because there is no animation of panel expansion when switching tabs, the problem was exposed only now. With this commit, hiding of "search only" buttons and panel size calculation happens in a single final step of the panel layout pass. The "search only" layout root flag is removed. Instead every button inside a panel header is in a single "uiButtonGroup" marked with a specific "in header" flag, an idea which could be generalized in the future. Differential Revision: https://developer.blender.org/D9006 |
Revision 724370b by Campbell Barton October 3, 2020, 14:45 (GMT) |
Cleanup: use BLI_path_join in appdir.c to simplify logic Change `test_path` function so: - Joining paths calls a function instead of being performed inline. - Optional NULL paths must always be ordered last (easier to follow). Other minor changes: - Remove FIXME comment is it's handled properly by BLI_path_join. - The wrong size was being used copying into `targetpath`. |
Revision 0bae266 by Julian Eisel October 3, 2020, 14:10 (GMT) |
Cleanup: Remove/replace C standard library assert() and header usages We have our own assert implementation, `BLI_assert()` that is prefered over the C standard library one. Its output is more consistent across compilers and makes termination on assert failure optional (through `WITH_ASSERT_ABORT`). In many places we'd include the C library header without ever accessing it. |
Revision e839179 by Julian Eisel October 3, 2020, 12:44 (GMT) |
Cleanup: Remove dead code in panel logic The region types checked here were removed from the editors in 9e2abbc9ba5d and eb7485389b8a. So the if-conditions would never be true. |
Revision 0bf12cb by Campbell Barton October 3, 2020, 11:55 (GMT) |
Fix error in recent change "run UserDef versioning from readfile.c" Missed moving the defines in CMake for e255040c7797 causing cycles not to be enabled. |
Revision 44397a6 by Campbell Barton October 3, 2020, 11:12 (GMT) |
Cleanup: use doxy sections for appdir.c Keep related functionality grouped. |
Revision f29e9e0 by Campbell Barton October 3, 2020, 11:09 (GMT) |
Cleanup: comments for appdir Use doxy syntax & minor improvements. |
Revision 6b7cbd6 by Antonio Vazquez October 3, 2020, 08:59 (GMT) |
GPencil: Fix unreported wrong name for RNA setter The Vertex Group setter function name was wrong for Tint modifier. |
Revision 0863ae0 by Campbell Barton October 3, 2020, 08:50 (GMT) |
Cleanup: move temp directory environment checks into a loop Minimizes ifdef'd code for WIN32. |
Revision cacd84a by Campbell Barton October 3, 2020, 08:50 (GMT) |
Fix invalid temp-dir for image-project on unsaved files The preferences tempdir being used instead of bpy.app.tempdir. |
Revision 9b602a8 by Campbell Barton October 3, 2020, 08:50 (GMT) |
Preferences: remove temp directory initialization for WIN32 Revert 76b1a27f96ffe1ec8c5351f34bcc2b9733b4483e since there is no reason windows should behave differently to other platforms. This was added so Windows users wouldn't see "/tmp/" in the UI. Since then the default temporary directory is a blank string, leave blank on all systems as Python script authors may accidentally use this instead of `bpy.app.tempdir`. |
Revision 10ae2ea by Campbell Barton October 3, 2020, 08:49 (GMT) |
Cleanup: remove unused temp directory initialization This last worked in v2.27 (2003) where all paths were initialized to "/" which was still checked to initialize the temp directory. This hasn't been the case since 932e9e831647604e0b129b55e5ab035 where it changed to "/tmp/", then an empty string (current default). |
Revision 29a8568 by Hans Goudey October 3, 2020, 02:24 (GMT) |
Fix stack use after scope error after recent cleanup An error adding search to an existing button, caused by my own error in rBa4aa94c41cb79e9. |
Revision 743eca0 by Hans Goudey October 2, 2020, 22:11 (GMT) |
UI: Create button group if none exists This makes it unecessary to create a button group when the block is created, giving more flexibility when creating the first group-- for example, creating the first button group with special parameters. |
Revision 3eab224 by Hans Goudey October 2, 2020, 22:00 (GMT) |
UI: Move button groups from layout to block level For a future patch (D9006) we need these groups for longer than just the the layout process, in order to differentiate buttons in panel headers. It may also be helpful in the future to have a way to access related buttons added in the same uiLayout.prop call. With this commit, the groups are stored in and destructed with the uiBlock. |
Revision 28a2c84 by Campbell Barton October 2, 2020, 21:25 (GMT) |
Cleanup: remove unused code in blend file loading v2.4x could cancel loading files that warned of being a newer, unsupported version. Remove this logic since it's no longer in use. |
Revision 8cd8b3e by Campbell Barton October 2, 2020, 21:25 (GMT) |
readfile: always run setup_app_data after updating defaults When blend files were loaded with app-templates, setup_app_data was running before defaults were updated. This is likely to cause problems with order of initialization so always update the startup file beforehand. |
Revision b13459f by Campbell Barton October 2, 2020, 21:25 (GMT) |
Cleanup: rename main preferences versioning function BLO_version_defaults_userpref_blend -> blo_do_versions_userdef The name was misleading as it was declared along with BLO_update_defaults_startup_blend making it seem these functions were related. In fact preference defaults don't need to be updated as is done for startup.blend since an in-memory blend file isn't used. Rename the function to match other versioning functions called from readfile.c. Also add/update comments on these differences. |
Revision e255040 by Campbell Barton October 2, 2020, 21:25 (GMT) |
Cleanup: run UserDef versioning from readfile.c Now versioning UserDef is run in readfile.c, as is done for other Blender data. Previously versioning was mixed with other run-time initialization, so it needed to be called later by the window manager. |
Revision 15a9579 by Campbell Barton October 2, 2020, 21:25 (GMT) |
Cleanup: centralize versioning readfile.c's versioning function was only used for 2 variables. Move versioning into versioning_userdef.c so everything is done in one function. Note: DNA_struct_elem_find checks have been replaced with checks for the next released version. This is harmless, as only old preferences saved between releases can have their values overwritten. Note: userdef versioning should be called from `do_versions_userdef`, this will be done separately. |
|
|
|


Master Commits
MiikaHweb | 2003-2021