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:
authorLukas Tönne <lukas.toenne@gmail.com>2015-03-02 14:31:24 +0300
committerLukas Tönne <lukas.toenne@gmail.com>2015-03-26 16:12:38 +0300
commit07e7cdad8df29fef7f5cf7719fda568df07ae050 (patch)
tree93adf428736f03d03a9eaf85fdef5fc871a080f0 /release
parent9848f404fb325a10b98dd6842fd1b49956a47a49 (diff)
Don't show mesh cache items for non-mesh objects.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_scene.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_scene.py b/release/scripts/startup/bl_ui/properties_scene.py
index a92198e47b5..1d998b2d322 100644
--- a/release/scripts/startup/bl_ui/properties_scene.py
+++ b/release/scripts/startup/bl_ui/properties_scene.py
@@ -488,7 +488,8 @@ class SCENE_PT_cache_manager(SceneButtonsPanel, Panel):
sub = self.draw_cache_item(context, layout, cachelib, ob, 'OBJECT')
- self.draw_cache_item(context, sub, cachelib, ob, 'DERIVED_MESH')
+ if (ob.type == 'MESH'):
+ self.draw_cache_item(context, sub, cachelib, ob, 'DERIVED_MESH')
for index, psys in enumerate(ob.particle_systems):
if psys.settings.type == 'HAIR':