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/blenkernel/BKE_screen.h | |
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/blenkernel/BKE_screen.h')
-rw-r--r-- | source/blender/blenkernel/BKE_screen.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/blenkernel/BKE_screen.h b/source/blender/blenkernel/BKE_screen.h index dea9884f508..473a684eaba 100644 --- a/source/blender/blenkernel/BKE_screen.h +++ b/source/blender/blenkernel/BKE_screen.h @@ -234,6 +234,8 @@ typedef struct PanelType { char category[BKE_ST_MAXNAME]; /* for category tabs */ char owner_id[BKE_ST_MAXNAME]; /* for work-spaces to selectively show. */ char parent_id[BKE_ST_MAXNAME]; /* parent idname for sub-panels */ + /** Boolean property identifier of the panel custom data. Used to draw a highlighted border. */ + char active_property[BKE_ST_MAXNAME]; short space_type; short region_type; /* For popovers, 0 for default. */ @@ -251,11 +253,6 @@ typedef struct PanelType { /* draw entirely, view changes should be handled here */ void (*draw)(const struct bContext *C, struct Panel *panel); - /** - * Identifier of a boolean property of the panel custom data. Used to draw a highlighted border. - */ - const char *active_property; - /* For instanced panels corresponding to a list: */ /** Reorder function, called when drag and drop finishes. */ |