Blender Git Commit Log
Git Commits -> Revision b8d4a2a
Revision b8d4a2a by Sybren A. Stüvel (master) September 8, 2020, 09:33 (GMT) |
Cleanup: Refactor `ED_object_parent_set` Refactor `ED_object_parent_set`: - Mark parameters `ob` and `par` as `const` so that it's clear the function doesn't assign any other value to them. - Rename `pararm` to `is_armature_parent`; I mis-read it as `param` all the time, and it was very confusing. - Replace repeated `if-else` statements with `switch` statements. - Reorder preconditions to have some simple checks first. - Flip condition on a huge `if`-statement to return early and unindent the remainder of the function. This function still requires splitting up into smaller functions, but at least this is a step forward. No functional changes. |
Commit Details:
Full Hash: b8d4a2aff8069dd7d6fb91ad0d9427eed489b68f
Parent Commit: c2419cd
Lines Changed: +165, -151
1 Modified Path:
/source/blender/editors/object/object_relations.c (+165, -151) (Diff)