From 3daf28388b7372208cbec870f51b37be3aeac1e9 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Fri, 4 Dec 2020 19:43:33 +0100 Subject: Cleanup: Move Outliner runtime hash into internal runtime struct, out of DNA This way Outliner internal data stays internal, non-Outliner code will not be able to access and mess with this. Further it allows us to use the real type (rather than `void *`), change the type to a C++ container if needed and slightly reduces the size for every Outliner stored in files. Slightly changed how we set the `SO_TREESTORE_REBUILD` for this, but it should effectively behave the same way as before. --- source/blender/makesdna/DNA_space_types.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'source/blender/makesdna/DNA_space_types.h') diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index cbf6e900416..a554caccc4e 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -1,4 +1,4 @@ -/* +/* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 @@ -279,11 +279,6 @@ typedef struct SpaceOutliner { char show_restrict_flags; short filter_id_type; - /** - * Pointers to treestore elements, grouped by (id, type, nr) - * in hashtable for faster searching */ - void *treehash; - SpaceOutliner_Runtime *runtime; } SpaceOutliner; -- cgit v1.2.3