[Bf-blender-cvs] [489a7cb] alembic_pointcache: Don't show mesh cache items for non-mesh objects.
Lukas Tönne
noreply at git.blender.org
Mon Mar 2 12:31:51 CET 2015
Commit: 489a7cb7b72545dd5b74f83edb7216ab5fa39568
Author: Lukas Tönne
Date: Mon Mar 2 12:31:24 2015 +0100
Branches: alembic_pointcache
https://developer.blender.org/rB489a7cb7b72545dd5b74f83edb7216ab5fa39568
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