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:
authorAntony Riakiotakis <kalast@gmail.com>2015-02-04 17:05:22 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-02-04 17:05:36 +0300
commitfe03bc2a02a0c9e5ecd554f72839ae0a407a8e86 (patch)
treea361542041b14b6e40f89e49c5a07bf5e3c0105f /release/scripts/startup/bl_ui/space_view3d.py
parent32482aadb8ecc4c2d1f2dd73124d1b94f0febe57 (diff)
Support rotation and flipping for background images, patch by Andre D.
(T34583) with minor changes. Thanks for the patch!
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d.py')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index c45d639737d..265163d225a 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -3177,12 +3177,19 @@ class VIEW3D_PT_background_image(Panel):
if bg.view_axis in {'CAMERA', 'ALL'}:
col.row().prop(bg, "frame_method", expand=True)
- row = col.row(align=True)
+ box = col.box()
+ row = box.row()
row.prop(bg, "offset_x", text="X")
row.prop(bg, "offset_y", text="Y")
+ row = box.row()
+ row.prop(bg, "flip_h")
+ row.prop(bg, "flip_v")
+
+ row = box.row()
if bg.view_axis != 'CAMERA':
- col.prop(bg, "size")
+ row.prop(bg, "rotation")
+ row.prop(bg, "size")
class VIEW3D_PT_transform_orientations(Panel):