[Bf-blender-cvs] [7f59c84] asset-experiments: Add comment about why we need to store fileselection state outside of filelist items now.

Bastien Montagne noreply at git.blender.org
Fri May 29 10:56:08 CEST 2015


Commit: 7f59c846a780db12903a724cf4131d6c43cc8a75
Author: Bastien Montagne
Date:   Fri May 29 10:38:55 2015 +0200
Branches: asset-experiments
https://developer.blender.org/rB7f59c846a780db12903a724cf4131d6c43cc8a75

Add comment about why we need to store fileselection state outside of filelist items now.

===================================================================

M	source/blender/editors/space_file/filelist.c

===================================================================

diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c
index 519e8c6..d5dd592 100644
--- a/source/blender/editors/space_file/filelist.c
+++ b/source/blender/editors/space_file/filelist.c
@@ -288,6 +288,10 @@ typedef struct FileList {
 
 	struct FileListEntryCache filelist_cache;
 
+	/* We need to keep those info outside of actual filelist items, because those are no more persistent
+	 * (only generated on demand, and freed as soon as possible).
+	 * Persistent part (mere list of paths + stat info) is kept as small as possible, and filebrowser-agnostic.
+	 */
 	GHash *selection_state;
 
 	short max_recursion;




More information about the Bf-blender-cvs mailing list