April 21, 2015, 15:56 (GMT) |
Some cleanup... |
April 21, 2015, 15:28 (GMT) |
Merge branch 'master' into ui-preview-buttons |
April 18, 2015, 09:09 (GMT) |
Previews: use a ghash to store previews of every path. Simpler, sanier, and avoids Icons to have to own ImagePreview data even! |
April 18, 2015, 08:16 (GMT) |
Merge branch 'master' into ui-preview-buttons |
April 17, 2015, 08:57 (GMT) |
ImagePreview: merging changed and user_edited into a single flag |
April 16, 2015, 18:10 (GMT) |
Merge branch 'master' into ui-preview-buttons |
April 15, 2015, 20:15 (GMT) |
Initial support for icon/preview/thumbnail of files, including py API. All this is rather rough at the edges still, but seems to be working from quick tests. Basically, it: * Rework a bi BKE_icon, adding a special kind of icons, which type is 0, and which own a PreviewImage in their obj field. * Add helper to generate such icon from a file path. * Add RNA API (to bpy.data currently). So now, one can request a 'Preview' for a given path, that preview has an icon_id that can be passed as 'icon_value' parameters of UILayout functions. Main issue currently is, if you request several time same path, you'll get different icons/previews each time, maybe we want to store paths in another ghash instead? |
April 15, 2015, 17:37 (GMT) |
Initial import of part of work done on Preview stuff from asset-experiments branch. |
|