rna naming, *_frame --> frame_*
[blender-staging.git] / release / scripts / ui / properties_physics_common.py
index b81fa25b1a13fcabf510c58d7ab02dc4735a18d5..372509773ef68cb388f87d18127bab5e9d370841 100644 (file)
@@ -53,8 +53,8 @@ def point_cache_ui(self, context, cache, enabled, particles, smoke):
         if not particles:
             row = layout.row()
             row.enabled = enabled
-            row.prop(cache, "start_frame")
-            row.prop(cache, "end_frame")
+            row.prop(cache, "frame_start")
+            row.prop(cache, "frame_end")
 
         row = layout.row()
 
@@ -65,7 +65,7 @@ def point_cache_ui(self, context, cache, enabled, particles, smoke):
 
         sub = row.row()
         sub.enabled = (cache.frames_skipped or cache.outdated) and enabled
-        sub.operator("ptcache.bake", "bake", False, text="Calculate to Current Frame")
+        sub.operator("ptcache.bake", text="Calculate to Current Frame").bake = False
 
         row = layout.row()
         row.enabled = enabled
@@ -87,7 +87,7 @@ def point_cache_ui(self, context, cache, enabled, particles, smoke):
         row = layout.row()
         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")
+        layout.operator("ptcache.bake_all", text="Update All Dynamics to current frame").bake = False
 
 
 def effector_weights_ui(self, context, weights):