Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/properties_physics_fluid.py
| Show All 15 Lines | |||||
| # | # | ||||
| # ##### END GPL LICENSE BLOCK ##### | # ##### END GPL LICENSE BLOCK ##### | ||||
| # <pep8 compliant> | # <pep8 compliant> | ||||
| import bpy | import bpy | ||||
| from bpy.types import Panel | from bpy.types import Panel | ||||
| from bl_ui.utils import PresetPanel | from bl_ui.utils import PresetPanel | ||||
| from .properties_physics_common import ( | from bl_ui.properties_physics_common import ( | ||||
| effector_weights_ui, | effector_weights_ui, | ||||
| ) | ) | ||||
| class FLUID_PT_presets(PresetPanel, Panel): | class FLUID_PT_presets(PresetPanel, Panel): | ||||
| bl_label = "Fluid Presets" | bl_label = "Fluid Presets" | ||||
| preset_subdir = "fluid" | preset_subdir = "fluid" | ||||
| preset_operator = "script.execute_preset" | preset_operator = "script.execute_preset" | ||||
| ▲ Show 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | |||||
| layout.use_property_split = True | layout.use_property_split = True | ||||
| md = context.fluid | md = context.fluid | ||||
| domain = md.domain_settings | domain = md.domain_settings | ||||
| is_baking_any = domain.is_cache_baking_any | is_baking_any = domain.is_cache_baking_any | ||||
| has_baked_data = domain.has_cache_baked_data | has_baked_data = domain.has_cache_baked_data | ||||
| flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False) | col = layout.column(align=True) | ||||
| flow.enabled = not is_baking_any and not has_baked_data | col.enabled = not is_baking_any and not has_baked_data | ||||
| col = flow.column() | col.prop(domain, "use_collision_border_front") | ||||
| col.prop(domain, "use_collision_border_front", text="Front") | col.prop(domain, "use_collision_border_back") | ||||
| col = flow.column() | col.prop(domain, "use_collision_border_right") | ||||
| col.prop(domain, "use_collision_border_back", text="Back") | col.prop(domain, "use_collision_border_left") | ||||
| col = flow.column() | col.prop(domain, "use_collision_border_top") | ||||
| col.prop(domain, "use_collision_border_right", text="Right") | col.prop(domain, "use_collision_border_bottom") | ||||
| col = flow.column() | |||||
| col.prop(domain, "use_collision_border_left", text="Left") | |||||
| col = flow.column() | |||||
| col.prop(domain, "use_collision_border_top", text="Top") | |||||
| col = flow.column() | |||||
| col.prop(domain, "use_collision_border_bottom", text="Bottom") | |||||
| class PHYSICS_PT_smoke(PhysicButtonsPanel, Panel): | class PHYSICS_PT_smoke(PhysicButtonsPanel, Panel): | ||||
| bl_label = "Gas" | bl_label = "Gas" | ||||
| bl_parent_id = 'PHYSICS_PT_fluid' | bl_parent_id = 'PHYSICS_PT_fluid' | ||||
| COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} | ||||
| @classmethod | @classmethod | ||||
| ▲ Show 20 Lines • Show All 92 Lines • Show Last 20 Lines | |||||