fix errors with recent commits.

This commit is contained in:
Campbell Barton 2010-08-18 10:42:00 +00:00
parent c04199b3a1
commit 399dda68d8
3 changed files with 8 additions and 3 deletions

@ -57,10 +57,10 @@ def ui_items_general(col, context):
def opengl_lamp_buttons(column, lamp):
split = column.split(percentage=0.1)
split.prop(lamp, "use", text="", icon='OUTLINER_OB_LAMP' if lamp.enabled else 'LAMP_DATA')
split.prop(lamp, "use", text="", icon='OUTLINER_OB_LAMP' if lamp.use else 'LAMP_DATA')
col = split.column()
col.active = lamp.enabled
col.active = lamp.use
row = col.row()
row.label(text="Diffuse:")
row.prop(lamp, "diffuse_color", text="")
@ -69,7 +69,7 @@ def opengl_lamp_buttons(column, lamp):
row.prop(lamp, "specular_color", text="")
col = split.column()
col.active = lamp.enabled
col.active = lamp.use
col.prop(lamp, "direction", text="")

@ -23,6 +23,8 @@
#ifdef WITH_OPENJPEG
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"

@ -42,6 +42,9 @@
#ifdef WIN32
#include <io.h>
#endif
#include "MEM_guardedalloc.h"
#include "BLI_blenlib.h"
#include "imbuf.h"