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:
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_physics_cloth.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_physics_cloth.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_cloth.py b/release/scripts/startup/bl_ui/properties_physics_cloth.py
index 0362cc42371..54581c9276d 100644
--- a/release/scripts/startup/bl_ui/properties_physics_cloth.py
+++ b/release/scripts/startup/bl_ui/properties_physics_cloth.py
@@ -21,13 +21,13 @@ import bpy
from bpy.types import Menu, Panel
from bl_ui.properties_physics_common import (
+ point_cache_ui,
effector_weights_ui,
)
def cloth_panel_enabled(md):
- return True
- #return md.point_cache.is_baked is False
+ return md.point_cache.is_baked is False
class CLOTH_MT_presets(Menu):
@@ -132,6 +132,16 @@ class PHYSICS_PT_cloth(PhysicButtonsPanel, Panel):
sub.prop_search(cloth, "rest_shape_key", key, "key_blocks", text="")
+class PHYSICS_PT_cloth_cache(PhysicButtonsPanel, Panel):
+ bl_label = "Cloth Cache"
+ bl_options = {'DEFAULT_CLOSED'}
+ COMPAT_ENGINES = {'BLENDER_RENDER'}
+
+ def draw(self, context):
+ md = context.cloth
+ point_cache_ui(self, context, md.point_cache, cloth_panel_enabled(md), 'CLOTH')
+
+
class PHYSICS_PT_cloth_collision(PhysicButtonsPanel, Panel):
bl_label = "Cloth Collision"
bl_options = {'DEFAULT_CLOSED'}