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:
authorLukas Stockner <lukasstockner97>2020-02-15 03:49:50 +0300
committerLukas Stockner <lukas.stockner@freenet.de>2020-02-15 05:37:20 +0300
commitf6aafd5186bd921637df755797c7ff6f3036a361 (patch)
tree8a09a244cb18e926907cfeb9df7674063b702ae0 /source/blender/makesdna/DNA_modifier_types.h
parentfa4ab69abf5750857e0b79295b13efa73aef0766 (diff)
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
Diffstat (limited to 'source/blender/makesdna/DNA_modifier_types.h')
-rw-r--r--source/blender/makesdna/DNA_modifier_types.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_modifier_types.h b/source/blender/makesdna/DNA_modifier_types.h
index 82237a10d23..7a61118921d 100644
--- a/source/blender/makesdna/DNA_modifier_types.h
+++ b/source/blender/makesdna/DNA_modifier_types.h
@@ -1742,10 +1742,14 @@ typedef struct UVWarpModifierData {
ModifierData modifier;
char axis_u, axis_v;
- char _pad[6];
+ char _pad[2];
/** Used for rotate/scale. */
float center[2];
+ float offset[2];
+ float scale[2];
+ float rotation;
+
/** Source. */
struct Object *object_src;
/** Optional name of bone target, MAX_ID_NAME-2. */