[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [2209] trunk/py/scripts/addons/ io_scene_fbx/__init__.py: patch [#28118] Add XNA requirements to the official FBX exporter
Campbell Barton
ideasman42 at gmail.com
Tue Aug 2 05:47:53 CEST 2011
Revision: 2209
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=2209
Author: campbellbarton
Date: 2011-08-02 03:47:53 +0000 (Tue, 02 Aug 2011)
Log Message:
-----------
patch [#28118] Add XNA requirements to the official FBX exporter
fbx_xna_unified-2011-08-01b_jcbdigger.patch
Only part of this patch has been applied (just the changes to the operator).
Modified Paths:
--------------
trunk/py/scripts/addons/io_scene_fbx/__init__.py
Modified: trunk/py/scripts/addons/io_scene_fbx/__init__.py
===================================================================
--- trunk/py/scripts/addons/io_scene_fbx/__init__.py 2011-08-02 03:18:48 UTC (rev 2208)
+++ trunk/py/scripts/addons/io_scene_fbx/__init__.py 2011-08-02 03:47:53 UTC (rev 2209)
@@ -126,7 +126,8 @@
use_mesh_edges = BoolProperty(
name="Include Edges",
- description="Edges may not be necessary causes errors with XNA",
+ description=("Edges may not be necessary, can cause import "
+ "pipeline errors with XNA"),
default=False,
)
use_anim = BoolProperty(
@@ -153,16 +154,17 @@
soft_min=1, soft_max=16,
default=6.0,
)
+ path_mode = path_reference_mode
+ use_rotate_workaround = BoolProperty(
+ name="Rotate Animation Fix",
+ description="Disable global rotation, for XNA compatibility",
+ default=False,
+ )
xna_validate = BoolProperty(
name="XNA Strict Options",
description="Make sure options are compatible with Microsoft XNA",
default=False,
)
- use_rotate_workaround = BoolProperty(
- name="XNA Rotate Fix",
- description="Disable global rotation, for XNA compatibility",
- default=False,
- )
batch_mode = EnumProperty(
name="Batch Mode",
items=(('OFF', "Off", "Active scene to file"),
@@ -181,8 +183,6 @@
options={'HIDDEN'},
)
- path_mode = path_reference_mode
-
# Validate that the options are compatible with XNA (JCB)
def _validate_xna_options(self):
if not self.xna_validate:
@@ -191,17 +191,24 @@
if not self.use_rotate_workaround:
changed = True
self.use_rotate_workaround = True
- if self.global_scale != 1.0 or self.mesh_smooth_type != 'OFF':
+ if self.global_scale != 1.0:
changed = True
self.global_scale = 1.0
+ if self.mesh_smooth_type != 'OFF':
+ changed = True
self.mesh_smooth_type = 'OFF'
- if self.ANIM_OPTIMIZE or self.use_mesh_edges:
+ if self.use_anim_optimize:
changed = True
- self.ANIM_OPTIMIZE = False
+ self.use_anim_optimize = False
+ if self.use_mesh_edges:
+ changed = True
self.use_mesh_edges = False
if self.object_types & {'CAMERA', 'LAMP', 'EMPTY'}:
changed = True
self.object_types -= {'CAMERA', 'LAMP', 'EMPTY'}
+ if self.path_mode != 'STRIP':
+ changed = True
+ self.path_mode = 'STRIP'
return changed
@property
More information about the Bf-extensions-cvs
mailing list