Revision 5c0eda5 by Dalai Felinto September 9, 2020, 14:15 (GMT) |
CMake: Force experimental features to be on/off based on release cycle This makes it error-proof to disable/enable experimental features during the release cycles. Since it is handled by CMake it should always work reliably now (not depending on someone turning this on and off). Reviewed by Sergey Sharybin. |
Revision ddf4f28 by Jacques Lucke September 9, 2020, 13:43 (GMT) |
Cleanup: reduce variable scope |
Revision 842f52d by Hans Goudey September 9, 2020, 13:41 (GMT) |
Cleanup: Rename public "bUnit" functions This commit renames the functions in "BKE_unit.h` to be consistent with the naming in the rest of blenkernel. bUnit_AsString -> BKE_unit_value_as_string_adaptive bUnit_AsString2 -> BKE_unit_value_as_string bUnit_ReplaceString -> BKE_unit_replace_string bUnit_ApplyPreferredUnit -> BKE_unit_apply_preferred_unit bUnit_ToUnitAltName -> BKE_unit_name_to_alt bUnit_ClosestScalar -> BKE_unit_closest_scalar bUnit_BaseScalar -> BKE_unit_base_scalar bUnit_IsValid -> BKE_unit_is_valid bUnit_GetSystem -> BKE_unit_system_get bUnit_GetBaseUnit -> BKE_unit_base_get bUnit_GetBaseUnitOfType -> BKE_unit_base_of_type_get bUnit_GetName -> BKE_unit_name_get bUnit_GetNameDisplay -> BKE_unit_display_name_get bUnit_GetIdentifier -> BKE_unit_identifier_get bUnit_GetScaler -> BKE_unit_scalar_get bUnit_IsSuppressed -> BKE_unit_is_suppressed Differential Revision: https://developer.blender.org/D8828 |
Revision 6dc7266 by Philipp Oeser September 9, 2020, 12:12 (GMT) |
Fix T80464: Crash deleting bone constraints when the armature layer is not active Caused by {rB608d9b5aa1f1} Prior to rB608d9b5aa1f1, the constraint was gotten using **context** [CTX_data_pointer_get_type(C, "constraint", &RNA_Constraint) -- which is valid for bones on hidden layers]. After rB608d9b5aa1f1, the constraint is found (or isnt) using `edit_constraint_property_get` [this is **not** valid for bones on hidden layers because internally `BKE_pose_channel_active` checks if the bone is on an active layer]. Some observations: - Every operator using `edit_constraint_property_get` doesnt work for bones on inactive layers [delete, moveup, movedown, move to index (drag n drop nowadays)] -- moveup, movedown, move to index check if they could find a constraint beforehand though (dont crash) -- delete crashes (doesnt check if a constraint could actually be found) - Every operator using `edit_constraint_property_get` for constraint data doesnt work for bones on inactive layers [stretchto_reset, limitdistance_reset, childof_set_inverse, ...] -- these all check if they could find a constraint beforehand though (dont crash) This is because the poll function is using **context** to get the constraint, the operators themselves use **edit_constraint_property_get** which leads to inconsistent/unexpected results. Possible solutions were: - [1] let the delete operator just work with the context constraint again (like prior to rB608d9b5aa1f1) -- allows for deleting constraints on bones in inactive layers - [2] check if we could get a constraint -- prevents the crash, but does **not** allow for deleting constraints on bones in inactive layers - [3] make the poll `edit_constraint_poll_generic` be as strict as the operators -- dont use **context** to get the constraint, but something like **edit_constraint_property_get** - [4] make the operators be more graceful and let them act on bones on hidden layers -- let **edit_constraint_property_get** actually use the same **context** This patch implements [4], so poll an doperators are now in sync. - prevents reported crash - also enables operators for bone constraints on hidden layers - also enables drag and drop reordering of constraints on hidden layers This might be a candidate for 2.90.1? (if it is, take care to include prior "Refactor getting constraints" refactoring commit) Note: Adding constraints also doesnt work for bones on inactive layers [that was the case in 2.79 as well -- it is also using `BKE_pose_channel_active`] Maniphest Tasks: T80464 Differential Revision: https://developer.blender.org/D8805 |
Revision 9dcae4e by Philipp Oeser September 9, 2020, 12:12 (GMT) |
Refactor getting constraints This is the refactoring part of D8805 (should be no functional changes). - exposes pose-related part of former 'get_constraints()' from interface_templates.c to new ED_object_pose_constraint_list - rename ED_object_constraint_list_from_context --> ED_object_constraint_active_list Also clarify comments on both of these. ref T80464 ref https://developer.blender.org/D8805 |
Revision 98eb89b by Jacques Lucke September 9, 2020, 11:44 (GMT) |
UI: improve search results by using fuzzy and prefix matching Blender does string based searching in many different places. This patch updates four of these places to use the new string search api in `BLI_string_search.h`. In the future we probably want to update the other searches as well. Reviewers: Severin, pablovazquez Differential Revision: https://developer.blender.org/D8825 |
Revision 45bd8fd by Jacques Lucke September 9, 2020, 11:44 (GMT) |
BLI: new string search api that supports fuzzy and prefix matching This adds a generic string search library in `BLI_string_search.h`. The library has a simple to use C api that allows it's users to filter and sort a set of possible search results based on some query string. Reviewers: Severin Differential Revision: https://developer.blender.org/D8825 |
Revision 4ccd5bf by Campbell Barton September 9, 2020, 10:38 (GMT) |
Fix T80626: Crash adding custom-data layers after reloading the file Regression in a48d78ce07f4f which caused the meshes CustomData to be written before it's layer values were updated for writing. |
Revision dbec511 by Julian Eisel September 9, 2020, 10:18 (GMT) |
Fix T80613: Assert in UI_but_number_precision_set -1 is a valid value to pass as RNA float precision. We let the UI code figure out an appropriate precision then. So don't fail the assert if -1 is passed. |
Revision d51c8f7 by Sebastian Parborg September 9, 2020, 09:48 (GMT) |
Fix T80596: Convert to Curve from Mesh crashes Blender The point cache code needs a non NULL rbw pointer. This could have been avoided if there was a sanity check in the convert function, so added a check there as well. |
Revision 377a1e3 by Jacques Lucke September 9, 2020, 09:10 (GMT) |
Cleanup: use bool instead of int |
Revision 9164976 by Jacques Lucke September 9, 2020, 08:44 (GMT) |
Cleanup: use bool instead of int |
Revision 095142e by Jacques Lucke September 9, 2020, 08:37 (GMT) |
Cleanup: use bool instead of int |
Revision 0b311ee by Campbell Barton September 9, 2020, 05:37 (GMT) |
Correct error in last commit |
Revision 092bea0 by Campbell Barton September 9, 2020, 05:26 (GMT) |
Cleanup: access context argument instead of bpy.context |
Revision 3e8b155 by Campbell Barton September 9, 2020, 04:51 (GMT) |
Fix "Select" option being ignored when linking collection instances Also check 'BASE_SELECTABLE' before selecting which was only done for collections. |
Revision 23f1dea by Campbell Barton September 9, 2020, 03:30 (GMT) |
Cleanup: spelling |
Revision 1f75be8 by Campbell Barton September 9, 2020, 02:58 (GMT) |
Fix T80604: BLI_polyfill_calc exceeds stack size allocating points On systems with 512kb stack this happened at around 13k points. This happened at times with grease-pencil, although callers that frequently use complex polygons should be using BLI_polyfill_calc_arena. |
Revision b8840c1 by Aaron Carlisle September 9, 2020, 00:05 (GMT) |
UI: Rename "VCol" to "Vertex Colors" |
Revision f7fab77 by Clément Foucault September 8, 2020, 22:28 (GMT) |
Cleanup: GPU: Replace multiple checks by GLContext::debug_layer_support |
|
|
|


Master Commits
MiikaHweb | 2003-2021