Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-06-06 18:54:59 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-06-07 07:13:22 +0300
commit2d9d17c031cc651fde2c78e37452e99c9ee6fb77 (patch)
treec46b0c3c86f5583f5e723c29f83f86b998c24aa8 /source/blender/makesdna
parentf12c55d2b8070fbb01005a527c4d344b7d136609 (diff)
readfile: avoid library lookups for every id on undo
Instead index libraries, makes minor speedup when using many libraries.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_ID.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h
index d3d7d075229..b0812a81ee1 100644
--- a/source/blender/makesdna/DNA_ID.h
+++ b/source/blender/makesdna/DNA_ID.h
@@ -154,6 +154,9 @@ typedef struct Library {
struct Library *parent; /* set for indirectly linked libs, used in the outliner and while reading */
struct PackedFile *packedfile;
+
+ int temp_index;
+ int _pad;
} Library;
enum eIconSizes {