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
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2009-11-23 14:43:38 +0300
committerCampbell Barton <ideasman42@gmail.com>2009-11-23 14:43:38 +0300
commite0fc6d0c3360c1e5b61bdeefeb92cd3325780fab (patch)
tree7572b3143a9316a5e9639dbe3d2d758845454d18 /release/scripts/ui/properties_physics_common.py
parentc6dbbde16bdcfc46eba0c5a6bcd02c8d40c5f964 (diff)
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()
Diffstat (limited to 'release/scripts/ui/properties_physics_common.py')
-rw-r--r--release/scripts/ui/properties_physics_common.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/ui/properties_physics_common.py b/release/scripts/ui/properties_physics_common.py
index ef82707bfaa..d1720a2c323 100644
--- a/release/scripts/ui/properties_physics_common.py
+++ b/release/scripts/ui/properties_physics_common.py
@@ -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")