Cycles: svn merge -r41232:41266 ^/trunk/blender
[blender-staging.git] / source / blender / makesdna / DNA_ID.h
index 48ad8a0c017e1a3eb4e65a61c1f8b814c347add2..6f2933d154b1d8c8e8136b79f7dfd33600381417 100644 (file)
@@ -116,7 +116,13 @@ typedef struct Library {
        ID *idblock;
        struct FileData *filedata;
        char name[240];                 /* path name used for reading, can be relative and edited in the outliner */
-       char filepath[240];             /* temp. absolute filepath, only used while reading */
+       char filepath[240];             /* absolute filepath, this is only for convenience,
+                                                        * 'name' is the real path used on file read but in
+                                                        * some cases its useful to access the absolute one,
+                                                        * This is set on file read.
+                                                        * Use BKE_library_filepath_set() rather than
+                                                        * setting 'name' directly and it will be kepk in
+                                                        * sync - campbell */
        int tot, pad;                   /* tot, idblock and filedata are only fo read and write */
        struct Library *parent; /* set for indirectly linked libs, used in the outliner and while reading */
 } Library;