Merged changes in the trunk up to revision 31442.

This commit is contained in:
Tamito Kajiyama
2010-08-18 14:10:28 +00:00
4 changed files with 10 additions and 5 deletions

View File

@@ -56,7 +56,7 @@ class TIME_HT_header(bpy.types.Header):
row = layout.row(align=True)
row.operator("screen.frame_jump", text="", icon='REW').end = False
row.operator("screen.keyframe_jump", text="", icon='PREV_KEYFRAME').next = False
if not screen.animation_playing:
if not screen.is_animation_playing:
row.operator("screen.animation_play", text="", icon='PLAY_REVERSE').reverse = True
row.operator("screen.animation_play", text="", icon='PLAY')
else:
@@ -68,7 +68,7 @@ class TIME_HT_header(bpy.types.Header):
row = layout.row(align=True)
row.prop(tools, "use_keyframe_insert_auto", text="", toggle=True)
if screen.animation_playing and tools.use_keyframe_insert_auto:
if screen.is_animation_playing and tools.use_keyframe_insert_auto:
subsub = row.row()
subsub.prop(tools, "use_record_with_nla", toggle=True)

View File

@@ -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="")

View File

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

View File

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