Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2009-06-07 15:42:13 +0400
committerThomas Dinges <blender@dingto.org>2009-06-07 15:42:13 +0400
commit349f5df595140d9827862ba7024f6fe6d49a7a22 (patch)
tree797332f503df0ff1d5c433b4c382b60786cba70c /source
parent0d75ad3001775f679be1a57fac934ff13864d1b7 (diff)
2.5 Preview render
* Added Preview panel to the lamp buttons.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/interface/interface_templates.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c
index e895d4eea16..d5b48c3da6d 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -1294,8 +1294,8 @@ void uiTemplatePreview(uiLayout *layout, ID *id)
uiBlock *block;
Material *ma;
- if(!id || !ELEM3(GS(id->name), ID_MA, ID_TE, ID_WO)) {
- printf("uiTemplatePreview: expected ID of type material, texture or world.\n");
+ if(!id || !ELEM4(GS(id->name), ID_MA, ID_TE, ID_WO, ID_LA)) {
+ printf("uiTemplatePreview: expected ID of type material, texture, lamp or world.\n");
return;
}