[Bf-blender-cvs] [c25c3bb] blender2.8: Fix UI for smoke cache
Dalai Felinto
noreply at git.blender.org
Wed Nov 2 11:09:32 CET 2016
Commit: c25c3bb6cbb2c9562bb60af7fd494b4376e39048
Author: Dalai Felinto
Date: Wed Nov 2 11:09:27 2016 +0100
Branches: blender2.8
https://developer.blender.org/rBc25c3bb6cbb2c9562bb60af7fd494b4376e39048
Fix UI for smoke cache
(this was probably broken since we got rid of point cache in 2.8)
===================================================================
M release/scripts/startup/bl_ui/properties_physics_smoke.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/properties_physics_smoke.py b/release/scripts/startup/bl_ui/properties_physics_smoke.py
index 8518e6f..dfb40b8 100644
--- a/release/scripts/startup/bl_ui/properties_physics_smoke.py
+++ b/release/scripts/startup/bl_ui/properties_physics_smoke.py
@@ -298,21 +298,17 @@ class PHYSICS_PT_smoke_cache(PhysicButtonsPanel, Panel):
def draw(self, context):
layout = self.layout
- domain = context.smoke.domain_settings
- cache_file_format = domain.cache_file_format
-
- layout.prop(domain, "cache_file_format")
+ if not bpy.app.build_options.openvdb:
+ layout.label("Built without OpenVDB support")
+ return
- if cache_file_format == 'OPENVDB':
- if not bpy.app.build_options.openvdb:
- layout.label("Built without OpenVDB support")
- return
+ domain = context.smoke.domain_settings
- layout.label(text="Compression:")
- layout.prop(domain, "openvdb_cache_compress_type", expand=True)
- row = layout.row()
- row.label("Data Depth:")
- row.prop(domain, "data_depth", expand=True, text="Data Depth")
+ layout.label(text="Compression:")
+ layout.prop(domain, "openvdb_cache_compress_type", expand=True)
+ row = layout.row()
+ row.label("Data Depth:")
+ row.prop(domain, "data_depth", expand=True, text="Data Depth")
class PHYSICS_PT_smoke_field_weights(PhysicButtonsPanel, Panel):
More information about the Bf-blender-cvs
mailing list