more ui api changes.

- remove functions such as operator_int(), operator_enum(), operator_string
  this mixed with keyword arguments in a way that made them hard to read.
  Instead, have operator() always return properties rather then needing an argument.

- rename prop_pointer() --> prop_object(), pointer is more a C thing.

- missed item_enumR(), rename to prop_enum()
This commit is contained in:
Campbell Barton
2009-11-23 11:43:38 +00:00
parent c6dbbde16b
commit e0fc6d0c33
36 changed files with 284 additions and 290 deletions

View File

@@ -61,7 +61,7 @@ def point_cache_ui(self, context, cache, enabled, particles, smoke):
if cache.baked == True:
row.operator("ptcache.free_bake", text="Free Bake")
else:
row.operator_boolean("ptcache.bake", "bake", True, text="Bake")
row.operator("ptcache.bake", text="Bake").bake = True
sub = row.row()
sub.enabled = (cache.frames_skipped or cache.outdated) and enabled
@@ -85,7 +85,7 @@ def point_cache_ui(self, context, cache, enabled, particles, smoke):
layout.separator()
row = layout.row()
row.operator_boolean("ptcache.bake_all", "bake", True, text="Bake All Dynamics")
row.operator("ptcache.bake_all", text="Bake All Dynamics").bake = True
row.operator("ptcache.free_bake_all", text="Free All Bakes")
layout.operator("ptcache.bake_all", "bake", False, text="Update All Dynamics to current frame")