Blender Git Commit Log

Git Commits -> Revision 88a9d82

Revision 88a9d82 by Julian Eisel (master)
September 21, 2020, 11:15 (GMT)
Cleanup: Remove weird assert in button handling

The function this was in already checks the conditions under which it
can operate (as it should). No need to force the caller to do these
(quite specific) checks, the function can just do nothing if the button
doesn't need these operations.
Otherwise we'd have to always execute these checks before calling, which
makes calling it a hassle, makes the code harder to follow and generally
harder to maintain (what if the conditions change?).

Commit Details:

Full Hash: 88a9d82bbbbd4b1a67160a06de03535593e9bac8
Parent Commit: 92454ae
Lines Changed: +0, -3

1 Modified Path:

/source/blender/editors/interface/interface.c (+0, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021