[Bf-blender-cvs] [e9a38c50d9a] blender2.8: UI: update camera background images panel layout.

Sebastian Koenig noreply at git.blender.org
Thu Sep 27 14:19:27 CEST 2018


Commit: e9a38c50d9af6cbb96b235b725427b262ce56c5d
Author: Sebastian Koenig
Date:   Thu Sep 27 12:37:18 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBe9a38c50d9af6cbb96b235b725427b262ce56c5d

UI: update camera background images panel layout.

Differential Revision: https://developer.blender.org/D3739

===================================================================

M	release/scripts/startup/bl_ui/properties_data_camera.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/properties_data_camera.py b/release/scripts/startup/bl_ui/properties_data_camera.py
index ebad1d11544..ca3fd93e2dd 100644
--- a/release/scripts/startup/bl_ui/properties_data_camera.py
+++ b/release/scripts/startup/bl_ui/properties_data_camera.py
@@ -267,6 +267,8 @@ class DATA_PT_camera_background_image(CameraButtonsPanel, Panel):
 
     def draw(self, context):
         layout = self.layout
+        layout.use_property_split = True
+        layout.use_property_decorate = False
 
         cam = context.camera
         use_multiview = context.scene.render.use_multiview
@@ -338,8 +340,8 @@ class DATA_PT_camera_background_image(CameraButtonsPanel, Panel):
 
                     column = box.column()
                     column.active = has_bg
-                    column.prop(bg.clip_user, "proxy_render_size", text="")
                     column.prop(bg.clip_user, "use_render_undistorted")
+                    column.prop(bg.clip_user, "proxy_render_size")
 
                 if has_bg:
                     col = box.column()
@@ -348,17 +350,15 @@ class DATA_PT_camera_background_image(CameraButtonsPanel, Panel):
 
                     col.row().prop(bg, "frame_method", expand=True)
 
-                    box = col.box()
                     row = box.row()
                     row.prop(bg, "offset")
 
-                    row = box.row()
-                    row.prop(bg, "use_flip_x")
-                    row.prop(bg, "use_flip_y")
+                    col = box.column()
+                    col.prop(bg, "rotation")
+                    col.prop(bg, "scale")
 
-                    row = box.row()
-                    row.prop(bg, "rotation")
-                    row.prop(bg, "scale")
+                    col.prop(bg, "use_flip_x")
+                    col.prop(bg, "use_flip_y")
 
 
 class DATA_PT_camera_display(CameraButtonsPanel, Panel):



More information about the Bf-blender-cvs mailing list