Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander N <alpha-beta-release@gmx.net>2013-02-09 17:12:41 +0400
committerAlexander N <alpha-beta-release@gmx.net>2013-02-09 17:12:41 +0400
commitbb428363a66f4442b00b555d2d6f408e18d20100 (patch)
tree438a306a53945cfb4a0fee8ba45bae6c72d64d81 /io_scene_ms3d/ms3d_ui.py
parent1e46cc597d7768dac1b6b2a5b2f9dfc31086bcde (diff)
fixed vertex weight handling of more than 3 bone weights, that milkshape cannot support.
indirect part of the reported issue: http://www.blender.org/forum/viewtopic.php?t=26251 now, vertex weights will sorted according the weight. in case of more than 3 weights, less important ones will be skipped on export.
Diffstat (limited to 'io_scene_ms3d/ms3d_ui.py')
-rw-r--r--io_scene_ms3d/ms3d_ui.py44
1 files changed, 28 insertions, 16 deletions
diff --git a/io_scene_ms3d/ms3d_ui.py b/io_scene_ms3d/ms3d_ui.py
index b3e52b1e..31369429 100644
--- a/io_scene_ms3d/ms3d_ui.py
+++ b/io_scene_ms3d/ms3d_ui.py
@@ -492,7 +492,15 @@ class Ms3dExportOperator(Operator, ExportHelper):
default=ms3d_str['FILE_FILTER'],
options={'HIDDEN', }
)
-
+
+ ##def object_items(self, blender_context):
+ ## return[(item.name, item.name, "") for item in blender_context.selected_objects if item.type in {'MESH', }]
+ ##
+ ##object_name = EnumProperty(
+ ## name="Object",
+ ## description="select an object to export",
+ ## items=object_items,
+ ## )
##EXPORT_ACTIVE_ONLY:
##limit availability to only active mesh object
@@ -510,37 +518,41 @@ class Ms3dExportOperator(Operator, ExportHelper):
layout = self.layout
box = layout.box()
- box.label(ms3d_str['LABEL_NAME_OPTIONS'], icon=Ms3dUi.ICON_OPTIONS)
- box.prop(self, 'verbose', icon='SPEAKER')
+ flow = box.column_flow()
+ flow.label(ms3d_str['LABEL_NAME_OPTIONS'], icon=Ms3dUi.ICON_OPTIONS)
+ flow.prop(self, 'verbose', icon='SPEAKER')
box = layout.box()
- box.label(ms3d_str['LABEL_NAME_PROCESSING'],
+ flow = box.column_flow()
+ flow.label(ms3d_str['LABEL_NAME_PROCESSING'],
icon=Ms3dUi.ICON_PROCESSING)
- row = box.row()
+ row = flow.row()
row.label(ms3d_str['PROP_NAME_ACTIVE'], icon='ROTACTIVE')
row.label(blender_context.active_object.name)
- #box.prop(self, 'use_blender_names', icon='LINK_BLEND')
- box.prop(self, 'use_blender_names')
- box.prop(self, 'use_blender_materials')
+ ##flow.prop(self, 'object_name')
+ flow.prop(self, 'use_blender_names')
+ flow.prop(self, 'use_blender_materials')
box = layout.box()
- box.label(ms3d_str['LABEL_NAME_MODIFIER'],
+ flow = box.column_flow()
+ flow.label(ms3d_str['LABEL_NAME_MODIFIER'],
icon=Ms3dUi.ICON_MODIFIER)
- box.prop(self, 'apply_transform')
- row = box.row()
+ flow.prop(self, 'apply_transform')
+ row = flow.row()
row.prop(self, 'apply_modifiers')
sub = row.row()
sub.active = self.apply_modifiers
sub.prop(self, 'apply_modifiers_mode', text="")
box = layout.box()
- box.label(ms3d_str['LABEL_NAME_ANIMATION'],
+ flow = box.column_flow()
+ flow.label(ms3d_str['LABEL_NAME_ANIMATION'],
icon=Ms3dUi.ICON_ANIMATION)
- box.prop(self, 'use_animation')
+ flow.prop(self, 'use_animation')
if (self.use_animation):
- box.prop(self, 'normalize_weights')
- box.prop(self, 'shrink_to_keys')
- box.prop(self, 'bake_each_frame')
+ flow.prop(self, 'normalize_weights')
+ flow.prop(self, 'shrink_to_keys')
+ flow.prop(self, 'bake_each_frame')
# entrypoint for blender -> MS3D
def execute(self, blender_context):