Support rotation and flipping for background images, patch by Andre D.

(T34583) with minor changes. Thanks for the patch!
This commit is contained in:
2015-02-04 15:05:22 +01:00
parent 32482aadb8
commit fe03bc2a02
5 changed files with 61 additions and 16 deletions

View File

@@ -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):