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. |
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. |
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. |
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. |
October 2, 2020, 21:03 (GMT) |
Fixed assignment of wm_usd_import_invoke callback. |
Revision cf9ec5b by Joseph Eagar October 2, 2020, 20:38 (GMT) |
Merge branch 'master' of git://git.blender.org/blender |
October 2, 2020, 18:14 (GMT) |
Property Search: Don't use search color for subpanel titles This replaces the blue theme color for subpanel titles with the the same fade as for parent panels. The search color doesn't work well for subpanel title colors. And actually, because there are often buttons with checkboxes in the panel headers, we don't have to treat this indicator any differently than regular buttons. Differential Revision: https://developer.blender.org/D8976 |
October 2, 2020, 18:10 (GMT) |
Property Search: Differentiate search filtered and inactive buttons Currently there's no way to know if a button is inactive when it doesn't match the search results, because they use the same 50% gray level. This isn't a huge problem, but it could lead to confusion. This commit uses a subtle solution, a 25% opacity when the button is inactive and also filtered by search. This requires flipping the meaning of the UI_SEARCH_FILTER_MATCHES flag in the code, and also adding a widget_alpha_factor utility in the widget code. Differential Revision: https://developer.blender.org/D8975 |
October 2, 2020, 18:06 (GMT) |
Fix T78503: Disabled layout portion passes mouse through 3D Viewport -> Sidebar -> View -> Local Camera is disabled. When you click on it, box select starts. This behavior isn't intended, and fixing it is quite simple. The only case where this would continuing would still be desired is if a disabled button overlapped with a non-disabled button, but this shouldn't be the case anywhere. Differential Revision: https://developer.blender.org/D8832 |
October 2, 2020, 18:02 (GMT) |
Cleanup: Declare variables where initialized Also reduce the scope of some variable declarations. This also allows making some variables constant. |
October 2, 2020, 17:47 (GMT) |
Cleanup: Fix build error on windows int and eContextResult are different types to MSVC leading to a function signature mismatch. |
October 2, 2020, 17:42 (GMT) |
Fix non-thread safe code in view layer object hash Found as part of D8324, multithreaded Cycles object sync, where it caused a crash on concurrent access to object holdout state. |
October 2, 2020, 17:31 (GMT) |
Cleanup: clang-format |
October 2, 2020, 17:26 (GMT) |
Cycles: Add command line option for overriding the compute device The current way of setting the compute device makes sense for local use, but for headless rendering it it a massive pain to get Cycles to use the correct device, usually involving entire Python scripts. Therefore, this patch adds a simple command-line option to Blender for specifying the type of device that should be used. If the option is present, the settings in the user preferences and the scene are ignored, and instead all devices matching the specified type are used. Differential Revision: https://developer.blender.org/D9086 |
October 2, 2020, 16:56 (GMT) |
Cleanup: Use enum for return values in context callbacks Define enum `eContextResult` and use its values for returns, instead of just returning 1, 0, or -1 (and always having some comment that explains what -1 means). This also cleans up the mixup between returning `0` and `false`, and `1` and `true`. An inconsistency was discovered during this cleanup, and marked with `TODO(sybren)`. It's not fixed here, as it would consititute a functional change. The enum isn't used everywhere, as enums in C and C++ can have different storage sizes. To prevent issues, callback functions are still declared as returning`int`. To at least make things easier to understand for humans, I marked those with `int /*eContextResult*/`. This is a followup of D9090, and is intended to unify how context callbacks return values. This will make it easier to extend the approach in D9090 to those functions. No functional changes. Differential Revision: https://developer.blender.org/D9095 |
October 2, 2020, 15:40 (GMT) |
Fix T81345: part four, fix handling of IDProperties in edit armature undo. Specific armature editing undo code would duplicate and store a list of editbones. However, those are not linked to main data storage and should therefore never affect ID usercounting. |
October 2, 2020, 15:40 (GMT) |
Fix T81345: part three, armature `free_data` was not handling editbones properly. Armature freeing would not correctly free its editbone IDProperties. Add a utils to free the whole list of edit bones, and properly handle their potential IDProperties. |
October 2, 2020, 15:40 (GMT) |
Fix T81345, part two: crash in depsgraph when freeing COW armature. Freeing of bones' IDproerties from Armature `free_data` callback would always attempt to do user refcounting, which should never be done from that code. This would generate crashes in depsgraph/COW context e.g. |
October 2, 2020, 15:40 (GMT) |
Fix T81345: Part one: Missing handling of ID pointers from EditBone IDProperties. So far data management code would simply fully ignore potential ID pointers in custom properties of edit bones (which are a copy of those from regular `Bone`). This would lead to all kind of issues, among which refcounting inconsistencies, missing clearing of data uppon deletion, etc. |
October 2, 2020, 15:40 (GMT) |
Cleanup: Move `EditBone` structure definition from `ED` to `BKE` area. Access to this structure will be needed in BKE's armature code. |
|
|
|


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