Blender Git Commit Log

Git Commits -> Revision a508189

Revision a508189 by Campbell Barton (master)
January 4, 2021, 06:38 (GMT)
Cleanup: redundant code, minor inconsistencies

- Remove ternary operators when both values are the same.
- Remove break after return.
- Remove redundant NULL checks for code which handles
those cases immediately beforehand.

Commit Details:

Full Hash: a5081896bc0416f9b64ae8e488bfe1cc2042ca7e
Parent Commit: b5c2a75
Lines Changed: +14, -29

9 Modified Paths:

/source/blender/blenkernel/intern/studiolight.c (+3, -3) (Diff)
/source/blender/editors/gpencil/gpencil_fill.c (+5, -15) (Diff)
/source/blender/editors/gpencil/gpencil_utils.c (+1, -1) (Diff)
/source/blender/editors/space_nla/nla_channels.c (+1, -1) (Diff)
/source/blender/editors/space_text/text_autocomplete.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/view3d_gizmo_ruler.c (+1, -3) (Diff)
/source/blender/makesrna/intern/rna_object.c (+1, -1) (Diff)
/source/blender/modifiers/intern/MOD_smooth.c (+1, -3) (Diff)
/source/blender/windowmanager/intern/wm_keymap.c (+0, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021