From f1a217c5f9f05045f1c38fb39ee12260ca4010b9 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Fri, 1 Dec 2006 10:12:41 +0000 Subject: Library manegement features: - Outliner now shows hierarchy for Libraries, indicating which Library files invoked loading another. - SHIFT+F1 "Append" browser has a Library menu, allowing to directly browse into all open library files. This will prevent accidents like re-opening a same .blend via another path. --- source/blender/makesdna/DNA_ID.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source/blender/makesdna/DNA_ID.h') diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h index 638a225bd21..080d2861a19 100644 --- a/source/blender/makesdna/DNA_ID.h +++ b/source/blender/makesdna/DNA_ID.h @@ -117,14 +117,16 @@ typedef struct ID { /** * For each library file used, a Library struct is added to Main + * WARNING: readfile.c, expand_doit() reads this struct without DNA check! */ typedef struct Library { ID id; ID *idblock; struct FileData *filedata; - char name[240]; /* reveiled in the UI, can store relative path */ - char filename[240]; /* expanded name, not relative, used while reading */ - int tot, pad; /* tot, idblock and filedata are only fo read and write */ + char name[240]; /* reveiled in the UI, can store relative path */ + char filename[240]; /* expanded name, not relative, used while reading */ + int tot, pad; /* tot, idblock and filedata are only fo read and write */ + struct Library *parent; /* for outliner, showing dependency */ } Library; /** -- cgit v1.2.3