Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-02-23 20:25:13 +0300
committerHans Goudey <h.goudey@me.com>2021-02-23 20:25:13 +0300
commit64c35769f921e2c7e83ac966d07e0aace7e5f1fa (patch)
tree2b68c4a0e481d7b9f02ed137a4e8cd82121a9871
parentc62e60f01f2afb445380f7a38975848cc0496873 (diff)
Cleanup: Remove unecessary double negative
-rw-r--r--source/blender/editors/interface/interface.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c
index 636efbc50ce..6e25ec9d275 100644
--- a/source/blender/editors/interface/interface.c
+++ b/source/blender/editors/interface/interface.c
@@ -3428,12 +3428,12 @@ void UI_blocklist_free_inactive(const bContext *C, ListBase *lb)
{
LISTBASE_FOREACH_MUTABLE (uiBlock *, block, lb) {
if (!block->handle) {
- if (!block->active) {
- BLI_remlink(lb, block);
- UI_block_free(C, block);
+ if (block->active) {
+ block->active = false;
}
else {
- block->active = false;
+ BLI_remlink(lb, block);
+ UI_block_free(C, block);
}
}
}