Modifiers: Add option to directly specify a 2D transform for UVWarp

Currently the only option is to warp based on the transform of other
objects, which is inconvenient if you want to e.g. control it through
a driver - you need to set up a dummy object and go through that,
which is clunky and should be unneccessary.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D6690
This commit is contained in:
Lukas Stockner
2020-02-15 01:49:50 +01:00
committed by Lukas Stockner
parent fa4ab69abf
commit f6aafd5186
7 changed files with 108 additions and 44 deletions

View File

@@ -1455,6 +1455,19 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
col.label(text="Bone:")
col.prop_search(md, "bone_to", obj.data, "bones", text="")
split = layout.split()
col = split.column()
col.label(text="Offset:")
col.prop(md, "offset", text="")
col = split.column()
col.label(text="Scale:")
col.prop(md, "scale", text="")
col = split.column()
col.label(text="Rotate:")
col.prop(md, "rotation", text="")
split = layout.split()
col = split.column()