UI: allow shrinking panel height to zero when open.
authorAlexander Gavrilov <angavrilov@gmail.com>
Wed, 22 May 2019 14:59:06 +0000 (17:59 +0300)
committerAlexander Gavrilov <angavrilov@gmail.com>
Wed, 22 May 2019 14:59:22 +0000 (17:59 +0300)
commit5397d8d268244c34ecab94f89885e64925acc50e
treee032eec7627c852d64705bb69caf150cacceb34c
parent8f2538f4fba84c965b5b85e12eb441a97cfa5e58
UI: allow shrinking panel height to zero when open.

Currently if a panel becomes empty (draw simply returns), it stays
at the last non-empty height. This seems to be caused by some legacy
checks that may be completely obsolete, but the safest fix is to at
least allow resetting height when the panel is open.
source/blender/editors/include/UI_interface.h
source/blender/editors/interface/interface_panel.c
source/blender/editors/screen/area.c