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:
authorCampbell Barton <ideasman42@gmail.com>2012-08-06 23:28:22 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-08-06 23:28:22 +0400
commitd5b9ae57ca1b76ae1a2c296e83cc91029d373cea (patch)
tree83f4a78562886cd88abdcb63d7049d444eae2151 /source/blender/makesdna
parent43c3fa6c39214b018801caf80873c62755770aec (diff)
Switching images in the image space would modify UV coordinates.
This is an intended feature but works too unreliably. - This setting was stored in each face and only editable by re-running the unwrap, this is too hidden (only discovered this by reading code). - This worked with blender internal but not with cycles, such basic options as changing an image shouldn't behave different depending on the render engine selected. I've ifdef'd out the aspect correction for now, it could be added back as a per scene option and be made to run on both cycles or blender internal but for now I prefer to keep this disabled.
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r--source/blender/makesdna/DNA_meshdata_types.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/makesdna/DNA_meshdata_types.h b/source/blender/makesdna/DNA_meshdata_types.h
index 9ae2bec583d..2f5ef9c2aaa 100644
--- a/source/blender/makesdna/DNA_meshdata_types.h
+++ b/source/blender/makesdna/DNA_meshdata_types.h
@@ -95,7 +95,7 @@ typedef struct MLoop {
typedef struct MTexPoly {
struct Image *tpage;
char flag, transp;
- short mode, tile, unwrap;
+ short mode, tile, pad;
} MTexPoly;
/* can copy from/to MTexPoly/MTFace */
@@ -106,8 +106,7 @@ typedef struct MTexPoly {
(dst)->transp = (src)->transp; \
(dst)->mode = (src)->mode; \
(dst)->tile = (src)->tile; \
- (dst)->unwrap = (src)->unwrap; \
-}
+} (void)0
typedef struct MLoopUV {
float uv[2];
@@ -368,6 +367,5 @@ typedef struct MVertSkin {
#define TF_PIN2 32
#define TF_PIN3 64
#define TF_PIN4 128
-#define TF_CORRECT_ASPECT 256
#endif