[Bf-blender-cvs] [181d577d7d9] master: Fix T86200: Properties editor rearranges columns poorly when very wide
Yevgeny Makarov
noreply at git.blender.org
Thu Apr 7 00:08:43 CEST 2022
Commit: 181d577d7d97990bf1094710a09c377bad24a8eb
Author: Yevgeny Makarov
Date: Wed Apr 6 17:08:23 2022 -0500
Branches: master
https://developer.blender.org/rB181d577d7d97990bf1094710a09c377bad24a8eb
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
===================================================================
M release/scripts/startup/bl_ui/properties_physics_fluid.py
===================================================================
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):
More information about the Bf-blender-cvs
mailing list