minor adjustments to python scripts to make them easier to run outside of blender.

This commit is contained in:
Campbell Barton
2010-08-10 18:21:33 +00:00
parent 76b17eaac5
commit 7c0216c7a0
6 changed files with 15 additions and 13 deletions

View File

@@ -252,7 +252,7 @@ class OBJECT_PT_animation(ObjectButtonsPanel, bpy.types.Panel):
col.prop(ob, "time_offset_edit", text="Edit")
row = col.row()
row.prop(ob, "time_offset_particle", text="Particle")
row.active = len(ob.particle_systems) != 0
row.active = bool(ob.particle_systems)
row = col.row()
row.prop(ob, "time_offset_parent", text="Parent")
row.active = (ob.parent is not None)