[Bf-blender-cvs] [e839179b014] master: Cleanup: Remove dead code in panel logic
Julian Eisel
noreply at git.blender.org
Sat Oct 3 14:47:01 CEST 2020
Commit: e839179b014a2dac2b5cab6425bf7c382b9b0d1c
Author: Julian Eisel
Date: Sat Oct 3 14:44:31 2020 +0200
Branches: master
https://developer.blender.org/rBe839179b014a2dac2b5cab6425bf7c382b9b0d1c
Cleanup: Remove dead code in panel logic
The region types checked here were removed from the editors in 9e2abbc9ba5d and
eb7485389b8a. So the if-conditions would never be true.
===================================================================
M source/blender/editors/interface/interface_panel.c
===================================================================
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c
index ec4e2c03e85..974e2c62ab2 100644
--- a/source/blender/editors/interface/interface_panel.c
+++ b/source/blender/editors/interface/interface_panel.c
@@ -204,12 +204,6 @@ static bool panels_need_realign(ScrArea *area, ARegion *region, Panel **r_panel_
return true;
}
}
- else if (area->spacetype == SPACE_IMAGE && region->regiontype == RGN_TYPE_PREVIEW) {
- return true;
- }
- else if (area->spacetype == SPACE_FILE && region->regiontype == RGN_TYPE_CHANNELS) {
- return true;
- }
/* Detect if a panel was added or removed. */
Panel *panel_animation = NULL;
More information about the Bf-blender-cvs
mailing list