[Bf-blender-cvs] [ae4894f5372] temp-T96710-pbvh-pixels: Fix T86200: Properties editor rearranges columns poorly when very wide

Yevgeny Makarov noreply at git.blender.org
Fri Apr 8 11:07:46 CEST 2022


Commit: ae4894f53720a0eb01fe36246ecf8fabf08c24ed
Author: Yevgeny Makarov
Date:   Wed Apr 6 17:08:23 2022 -0500
Branches: temp-T96710-pbvh-pixels
https://developer.blender.org/rBae4894f53720a0eb01fe36246ecf8fabf08c24ed

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