Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYevgeny Makarov <jenkm>2022-04-07 01:08:23 +0300
committerHans Goudey <h.goudey@me.com>2022-04-07 01:08:23 +0300
commit181d577d7d97990bf1094710a09c377bad24a8eb (patch)
tree38a39fe212d99a6ae356ca534afb30a1a558d9dd
parentf16033c0f578b2269012865f18080cdd2b7b582b (diff)
Fix T86200: Properties editor rearranges columns poorly when very wide
Use a regular property split layout instead of a grid flow. Also fix part of T65393. Differential Revision: https://developer.blender.org/D13558
-rw-r--r--release/scripts/startup/bl_ui/properties_physics_fluid.py24
1 files changed, 9 insertions, 15 deletions
diff --git a/release/scripts/startup/bl_ui/properties_physics_fluid.py b/release/scripts/startup/bl_ui/properties_physics_fluid.py
index f8dea120db3..1b03da490b9 100644
--- a/release/scripts/startup/bl_ui/properties_physics_fluid.py
+++ b/release/scripts/startup/bl_ui/properties_physics_fluid.py
@@ -5,7 +5,7 @@
import bpy
from bpy.types import Panel
from bl_ui.utils import PresetPanel
-from .properties_physics_common import (
+from bl_ui.properties_physics_common import (
effector_weights_ui,
)
@@ -306,21 +306,15 @@ class PHYSICS_PT_borders(PhysicButtonsPanel, Panel):
is_baking_any = domain.is_cache_baking_any
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)
- flow.enabled = not is_baking_any and not has_baked_data
+ col = layout.column(align=True)
+ col.enabled = not is_baking_any and not has_baked_data
- col = flow.column()
- col.prop(domain, "use_collision_border_front", text="Front")
- col = flow.column()
- col.prop(domain, "use_collision_border_back", text="Back")
- col = flow.column()
- col.prop(domain, "use_collision_border_right", text="Right")
- 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")
+ col.prop(domain, "use_collision_border_front")
+ col.prop(domain, "use_collision_border_back")
+ col.prop(domain, "use_collision_border_right")
+ col.prop(domain, "use_collision_border_left")
+ col.prop(domain, "use_collision_border_top")
+ col.prop(domain, "use_collision_border_bottom")
class PHYSICS_PT_smoke(PhysicButtonsPanel, Panel):