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:
Diffstat (limited to 'release/scripts/uvcopy.py')
-rw-r--r--release/scripts/uvcopy.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/release/scripts/uvcopy.py b/release/scripts/uvcopy.py
index 7589b3e0fdb..7e83fef890b 100644
--- a/release/scripts/uvcopy.py
+++ b/release/scripts/uvcopy.py
@@ -80,8 +80,10 @@ def main():
# Add uvs if there not there
target.faceUV = True
- for i, f_source in enumerate(target.faces):
+ for i, f_source in enumerate(source_faces):
target_faces[i].uv = f_source.uv
+
+ target.update()
msg = 'Copied UVs to %d of %d mesh(s)' % (len(target_mes)-fail_count, len(target_mes))