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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-04-12 22:44:03 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-04-12 22:44:03 +0400
commitf8d1bc8ee7f7138927873ca0fce7eb06b901feb1 (patch)
treefc2ed58ff606354a299c2375eef471147274494c /source/blender/src/buttons_shading.c
parentea4a315f3d0f4addcb70ce91a26f1cf584a3e2dc (diff)
Fix for bug #8463: object texture mapping for duplis was changed to
act as if the object was in its original position, instead of being different for all instances. However, this is desired behavior in some cases and so breaks compatibility. Now it only does the new behavior when enabling the "From Original" option.
Diffstat (limited to 'source/blender/src/buttons_shading.c')
-rw-r--r--source/blender/src/buttons_shading.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/buttons_shading.c b/source/blender/src/buttons_shading.c
index 4ff6ff7b7d9..880076de162 100644
--- a/source/blender/src/buttons_shading.c
+++ b/source/blender/src/buttons_shading.c
@@ -3429,6 +3429,9 @@ static void material_panel_map_input(Object *ob, Material *ma)
if(ELEM(mtex->texco, TEXCO_UV, TEXCO_ORCO))
uiDefButBitS(block, TOG, MTEX_DUPLI_MAPTO, B_MATPRV, "From Dupli", 820,140,88,18, &(mtex->texflag), 0, 0, 0, 0, "If object is duplicated by vertices, faces or particles, inherit texture coordinate from parent object");
+ else if(mtex->texco == TEXCO_OBJECT)
+ uiDefButBitS(block, TOG, MTEX_OB_DUPLI_ORIG, B_MATPRV, "From Original", 820,140,88,18, &(mtex->texflag), 0, 0, 0, 0, "If object is duplicated, use object coordinates as if the object was in its original position");
+
/* COORDS */
uiBlockBeginAlign(block);