From d01374b4d0b9dc1c6e7599c75ed0b8a0b2e3a18a Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 9 Jan 2007 00:36:42 +0000 Subject: [PATCH] image_auto_layout update to use new UV coords, bugfix #5624 thenaks (fredz) added some text to mesh_boneweight_copy --- release/scripts/image_auto_layout.py | 7 +------ release/scripts/mesh_boneweight_copy.py | 9 +++++++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/release/scripts/image_auto_layout.py b/release/scripts/image_auto_layout.py index 178524a1844..de51991fa2b 100644 --- a/release/scripts/image_auto_layout.py +++ b/release/scripts/image_auto_layout.py @@ -285,7 +285,7 @@ def auto_layout_tex(mesh_list, scn, PREF_IMAGE_PATH, PREF_IMAGE_SIZE, PREF_KEEP_ render_scn.link(render_cam_ob) render_scn.setCurrentCamera(render_cam_ob) - render_cam_data.type= 1 # ortho + render_cam_data.type= 'ortho' render_cam_data.scale= 1.0 @@ -346,11 +346,6 @@ def auto_layout_tex(mesh_list, scn, PREF_IMAGE_PATH, PREF_IMAGE_SIZE, PREF_KEEP_ uv_rot= ((uv-fg.cent) * fg.rot_mat[1]) + fg.cent uv.x= uv_rot.x uv.y= uv_rot.y - - # VCOLS - # Set them white. - for c in target_face.col: - c.r= c.g= c.b= 255 render_context.render() Render.CloseRenderWindow() diff --git a/release/scripts/mesh_boneweight_copy.py b/release/scripts/mesh_boneweight_copy.py index 11e9efcf0b7..9db31be72e6 100755 --- a/release/scripts/mesh_boneweight_copy.py +++ b/release/scripts/mesh_boneweight_copy.py @@ -198,14 +198,19 @@ def main(): Blender.Draw.PupMenu('Error%t|2 or more mesh objects need to be selected.|aborting.') return - PREF_QUALITY= Blender.Draw.Create(3) + PREF_QUALITY= Blender.Draw.Create(0) PREF_NO_XCROSS= Blender.Draw.Create(0) PREF_SEL_ONLY= Blender.Draw.Create(0) pup_block = [\ ('Quality:', PREF_QUALITY, 0, 4, 'Generate interpolated verts for a higher quality result.'),\ ('No X Crossing', PREF_NO_XCROSS, 'Do not snap across the zero X axis'),\ - ('Copy to Selected', PREF_SEL_ONLY, 'Only copy new weights to selected verts on the target mesh. (use active object as source)'),\ + '',\ + '"Update Selected" copies',\ + 'active object weights to',\ + 'selected verts on the other',\ + 'selected mesh objects.',\ + ('Update Selected', PREF_SEL_ONLY, 'Only copy new weights to selected verts on the target mesh. (use active object as source)'),\ ]