blender/source/blender
Bastien Montagne 4faef1e10c Add drag-resize to uiTemplatePreview (mat/tex/etc. preview widget).
This is done by adding a new button type, GRIP, similar to other numbuttons
(scroll, slider, ...), which here controls the preview height.

Then, we add a new DNA struct to be able to save that height in Blend files
(note I choose not to use Panel struct for this, because we would then have the
same limitation we used to have with uiLists, only one preview per panel
and no preview outside panel).

This implies a change to template_preview UI RNA/py API (each preview needs an ID),
but this is backward compatible, as by default datablock type will be used if no ID is
given (which means e.g. all material previews with no ID will have same height).

Reviewers: brecht

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D342
2014-04-02 13:03:11 +02:00
..
avi Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define 2014-04-01 15:22:28 +11:00
blenfont Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define 2014-04-01 15:22:28 +11:00
blenkernel Add drag-resize to uiTemplatePreview (mat/tex/etc. preview widget). 2014-04-02 13:03:11 +02:00
blenlib Rename "BLI_cpu.h" to "BLI_system.h" and add to it BLI_getpid() helper. 2014-04-02 11:59:43 +02:00
blenloader Add drag-resize to uiTemplatePreview (mat/tex/etc. preview widget). 2014-04-02 13:03:11 +02:00
bmesh Fix T39550: polygons.active has bad default 2014-04-02 06:40:39 +11:00
collada Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define 2014-04-01 15:22:28 +11:00
compositor Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define 2014-04-01 15:22:28 +11:00
datatoc Code cleanup: style 2014-02-13 08:52:12 +11:00
editors Add drag-resize to uiTemplatePreview (mat/tex/etc. preview widget). 2014-04-02 13:03:11 +02:00
freestyle Fix for building with MSVC2008 2014-04-02 09:16:47 +11:00
gpu Dyntopo: Delete OpenGL buffers of nodes that do not have any more 2014-04-02 01:41:14 +03:00
ikplugin Adapt KDL for compile with clang 3.4, which is stricter with friend classes, 2014-02-17 16:39:03 +01:00
imbuf Rename "BLI_cpu.h" to "BLI_system.h" and add to it BLI_getpid() helper. 2014-04-02 11:59:43 +02:00
makesdna Add drag-resize to uiTemplatePreview (mat/tex/etc. preview widget). 2014-04-02 13:03:11 +02:00
makesrna Add drag-resize to uiTemplatePreview (mat/tex/etc. preview widget). 2014-04-02 13:03:11 +02:00
modifiers Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define 2014-04-01 15:22:28 +11:00
nodes Cycles: add dedicated UV Map node, easier to find and has convenient auto complete. 2014-04-02 11:53:44 +02:00
python Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define 2014-04-01 15:22:28 +11:00
quicktime Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define 2014-04-01 15:22:28 +11:00
render Fix T39521: Render with two Blender processes on same computer: compression issues? 2014-04-02 11:59:43 +02:00
windowmanager Rename "BLI_cpu.h" to "BLI_system.h" and add to it BLI_getpid() helper. 2014-04-02 11:59:43 +02:00
CMakeLists.txt cmake/openimageio - partially reverting #60692 2013-10-12 23:56:21 +00:00
SConscript scons file for OIIO (needed for psd) 2013-10-11 16:38:31 +00:00