diff options
author | Hans Goudey <h.goudey@me.com> | 2020-12-01 01:43:14 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-12-02 18:44:40 +0300 |
commit | 3d0c5455edf4e32e6e8120b280710cb4b531e38a (patch) | |
tree | d55cdaa779698bdf4b856221a8f826bbf43e2ce4 /source/blender/editors | |
parent | 9281a1f4ebcbbc9ebeb1f11a9f68e45fb2dff5f1 (diff) |
Cleanup: Store "is_active" instead of pointer property in panel type
This is consistent with the way other panel type fields are stored.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index d1e5bbcb536..b60fa40f39a 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -589,7 +589,7 @@ static bool panel_use_active_highlight(const Panel *panel) BLI_assert(UI_panel_is_active(panel)); BLI_assert(panel->type != NULL); - if (panel->type->active_property) { + if (panel->type->active_property[0] != '\0') { PointerRNA *ptr = UI_panel_custom_data_get(panel); if (ptr != NULL && !RNA_pointer_is_null(ptr)) { return RNA_boolean_get(ptr, panel->type->active_property); |