image_auto_layout update to use new UV coords, bugfix #5624 thenaks (fredz)

added some text to mesh_boneweight_copy
This commit is contained in:
Campbell Barton 2007-01-09 00:36:42 +00:00
parent 8a5a220108
commit d01374b4d0
2 changed files with 8 additions and 8 deletions

@ -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()

@ -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)'),\
]