[Bf-blender-cvs] [bdc9a7d] gooseberry: Don't show mesh cache items for non-mesh objects.
Lukas Tönne
noreply at git.blender.org
Mon Mar 23 13:02:06 CET 2015
Commit: bdc9a7d7f7e95c2ecf4f44189c9c7d41303f40ff
Author: Lukas Tönne
Date: Mon Mar 2 12:31:24 2015 +0100
Branches: gooseberry
https://developer.blender.org/rBbdc9a7d7f7e95c2ecf4f44189c9c7d41303f40ff
Don't show mesh cache items for non-mesh objects.
===================================================================
M release/scripts/startup/bl_ui/properties_scene.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_scene.py b/release/scripts/startup/bl_ui/properties_scene.py
index a92198e..1d998b2 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':
More information about the Bf-blender-cvs
mailing list