[Bf-blender-cvs] [7d89274] alembic_pointcache: Fix for cache panel display: the `is_baked` flag has been removed and should not be used to disable cache UI any longer.

Lukas Tönne noreply at git.blender.org
Thu Feb 19 13:11:44 CET 2015


Commit: 7d89274d14fe33d0ef960ce80759423f9bd7cc68
Author: Lukas Tönne
Date:   Thu Feb 19 13:09:33 2015 +0100
Branches: alembic_pointcache
https://developer.blender.org/rB7d89274d14fe33d0ef960ce80759423f9bd7cc68

Fix for cache panel display: the `is_baked` flag has been removed and
should not be used to disable cache UI any longer.

===================================================================

M	release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py
M	release/scripts/startup/bl_ui/properties_physics_smoke.py
M	release/scripts/startup/bl_ui/properties_scene.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py b/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py
index d2d7134..75379e2 100644
--- a/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py
+++ b/release/scripts/startup/bl_ui/properties_physics_dynamicpaint.py
@@ -407,7 +407,7 @@ class PHYSICS_PT_dp_cache(PhysicButtonsPanel, Panel):
         surface = context.dynamic_paint.canvas_settings.canvas_surfaces.active
         cache = surface.point_cache
 
-        point_cache_ui(self, context, surface, cache, (cache.state.is_baked is False), 'DYNAMIC_PAINT')
+        point_cache_ui(self, context, surface, cache, True, 'DYNAMIC_PAINT')
 
 
 class PHYSICS_PT_dp_brush_source(PhysicButtonsPanel, Panel):
diff --git a/release/scripts/startup/bl_ui/properties_physics_smoke.py b/release/scripts/startup/bl_ui/properties_physics_smoke.py
index d63d039..7f6fcda 100644
--- a/release/scripts/startup/bl_ui/properties_physics_smoke.py
+++ b/release/scripts/startup/bl_ui/properties_physics_smoke.py
@@ -310,7 +310,7 @@ class PHYSICS_PT_smoke_cache(PhysicButtonsPanel, Panel):
         layout.label(text="Compression:")
         layout.prop(md, "point_cache_compress_type", expand=True)
 
-        point_cache_ui(self, context, md, cache, (cache.state.is_baked is False), 'SMOKE')
+        point_cache_ui(self, context, md, cache, True, 'SMOKE')
 
 
 class PHYSICS_PT_smoke_field_weights(PhysicButtonsPanel, Panel):
diff --git a/release/scripts/startup/bl_ui/properties_scene.py b/release/scripts/startup/bl_ui/properties_scene.py
index a95e264..150dd4f 100644
--- a/release/scripts/startup/bl_ui/properties_scene.py
+++ b/release/scripts/startup/bl_ui/properties_scene.py
@@ -353,7 +353,7 @@ class SCENE_PT_rigid_body_cache(SceneButtonsPanel, Panel):
         scene = context.scene
         rbw = scene.rigidbody_world
 
-        point_cache_ui(self, context, rbw, rbw.point_cache, rbw.point_cache.state.is_baked is False and rbw.enabled, 'RIGID_BODY')
+        point_cache_ui(self, context, rbw, rbw.point_cache, rbw.enabled, 'RIGID_BODY')
 
 
 class SCENE_PT_rigid_body_field_weights(SceneButtonsPanel, Panel):




More information about the Bf-blender-cvs mailing list