diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-09-03 20:28:53 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2013-09-03 20:28:53 +0400 |
commit | 6cc84d7c99cb30b722aaaba672b4068f265a8f03 (patch) | |
tree | 0357be32e9934ea7a4cf5c5ffe28d615148a6a59 /release/scripts | |
parent | b03829b5a13304eef4822c025f70adcb64a0afc4 (diff) |
Related to #36382: for linked object point caches, show a message that disk
cache must be used for baking.
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_physics_common.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_common.py b/release/scripts/startup/bl_ui/properties_physics_common.py index dcb47b9f015..26587472566 100644 --- a/release/scripts/startup/bl_ui/properties_physics_common.py +++ b/release/scripts/startup/bl_ui/properties_physics_common.py @@ -159,6 +159,8 @@ def point_cache_ui(self, context, cache, enabled, cachetype): if cachetype != 'SMOKE': layout.label(text=cache.info) + can_bake = True + if cachetype not in {'SMOKE', 'DYNAMIC_PAINT', 'RIGID_BODY'}: split = layout.split() split.enabled = enabled and bpy.data.is_saved @@ -176,9 +178,18 @@ def point_cache_ui(self, context, cache, enabled, cachetype): row.label(text="Compression:") row.prop(cache, "compression", expand=True) - layout.separator() + layout.separator() + + if cache.id_data.library: + can_bake = False + + col = layout.column(align=True) + col.label(text="Linked object baking requires Disk Cache to be enabled", icon='INFO') + else: + layout.separator() split = layout.split() + split.active = can_bake col = split.column() |