[Bf-blender-cvs] [24c5b13] ui-preview-buttons: Comments

Campbell Barton noreply at git.blender.org
Tue May 5 13:56:35 CEST 2015


Commit: 24c5b13789f809e93094c62075db06c0029a6664
Author: Campbell Barton
Date:   Tue May 5 21:08:43 2015 +1000
Branches: ui-preview-buttons
https://developer.blender.org/rB24c5b13789f809e93094c62075db06c0029a6664

Comments

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

M	release/scripts/modules/bpy/utils/previews.py

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

diff --git a/release/scripts/modules/bpy/utils/previews.py b/release/scripts/modules/bpy/utils/previews.py
index 639f91d..8984712 100644
--- a/release/scripts/modules/bpy/utils/previews.py
+++ b/release/scripts/modules/bpy/utils/previews.py
@@ -41,6 +41,10 @@ class BPyPreviewsCollection(dict):
     """
     Dict-like class of previews.
     """
+    # Internal notes:
+    # - keys in the dict are stored by name
+    # - values are instances of bpy.types.Preview
+    # - Blender's internal 'PreviewImage' struct uses 'self._coll_name' prefix.
 
     def __init__(self, name):
         super().__init__()




More information about the Bf-blender-cvs mailing list