* Some tweaks to the OBJ importer/exporter after chatting with Campbell

- renamed the 'morph target' option to 'keep vertex order'
- enabled 'keep vertex order' by default

This should improve usability for importing and exporting shape keys, point caches, mdds ,etc.
This commit is contained in:
2008-09-17 04:07:58 +00:00
parent 36e2004fca
commit f0e0e6b1c9
2 changed files with 10 additions and 10 deletions

View File

@@ -763,7 +763,7 @@ def load_obj_ui(filepath, BATCH_LOAD= False):
SPLIT_OBJECTS= Draw.Create(1)
SPLIT_GROUPS= Draw.Create(1)
SPLIT_MATERIALS= Draw.Create(1)
MORPH_TARGET= Draw.Create(0)
KEEP_VERT_ORDER= Draw.Create(1)
CLAMP_SIZE= Draw.Create(10.0)
IMAGE_SEARCH= Draw.Create(1)
@@ -779,7 +779,7 @@ def load_obj_ui(filepath, BATCH_LOAD= False):
('Group', SPLIT_GROUPS, 'Import OBJ Groups into Blender Objects'),\
('Material', SPLIT_MATERIALS, 'Import each material into a seperate mesh (Avoids > 16 per mesh error)'),\
'Options...',\
('Morph Target', MORPH_TARGET, 'Keep vert and face order, disables some other options.'),\
('Keep Vert Order', KEEP_VERT_ORDER, 'Keep vert and face order, disables some other options.'),\
('Clamp Scale:', CLAMP_SIZE, 0.0, 1000.0, 'Clamp the size to this maximum (Zero to Disable)'),\
('Image Search', IMAGE_SEARCH, 'Search subdirs for any assosiated images (Warning, may be slow)'),\
]
@@ -787,7 +787,7 @@ def load_obj_ui(filepath, BATCH_LOAD= False):
if not Draw.PupBlock('Import OBJ...', pup_block):
return
if MORPH_TARGET.val:
if KEEP_VERT_ORDER.val:
SPLIT_OBJECTS.val = False
SPLIT_GROUPS.val = False
SPLIT_MATERIALS.val = False