From cdb7498f663e539f05bc314c4e80c55ba45cdc02 Mon Sep 17 00:00:00 2001 From: Julian Eisel Date: Fri, 10 Mar 2017 23:29:32 +0100 Subject: Cleanup: Add comment about use of ID pointer in TreeStoreElem --- source/blender/makesdna/DNA_outliner_types.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/makesdna/DNA_outliner_types.h') diff --git a/source/blender/makesdna/DNA_outliner_types.h b/source/blender/makesdna/DNA_outliner_types.h index 44844653f3b..cb868ceb98e 100644 --- a/source/blender/makesdna/DNA_outliner_types.h +++ b/source/blender/makesdna/DNA_outliner_types.h @@ -38,6 +38,9 @@ struct ID; typedef struct TreeStoreElem { short type, nr, flag, used; + + /* XXX We actually also store non-ID data in this pointer for identifying + * the TreeStoreElem for a TreeElement when rebuilding the tree. Ugly! */ struct ID *id; } TreeStoreElem; -- cgit v1.2.3