IsraelAbebe / blender2ogre

Automatically exported from code.google.com/p/blender2ogre
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Export failure #40

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Attempt to export the attached blender file.

What is the expected output? What do you see instead?

Expected output: An Ogre3D mesh.
Instead:

GEN DOT MATERIAL... <bpy_struct, Material("box_tex")>
        STANDARD MATERIAL
********************************************************************************
TEXTURE SLOTS [bpy.data.materials["box_tex"].texture_slots[0], 
bpy.data.materials["box_tex"].texture_slots[1]]
********************************************************************************
saved /tmp/bbox/box_tex.material
--------------- exporting root -> <bpy_struct, Object("box")>
mesh to Ogre mesh XML format box
creating document...
    writing shared geometry
Traceback (most recent call last):
  File "/usr/local/share/blender/scripts/addons/io_export_ogreDotScene.py", line 3290, in execute
    def execute(self, context): self.ogre_export(  self.filepath, context ); return {'FINISHED'}
  File "/usr/local/share/blender/scripts/addons/io_export_ogreDotScene.py", line 3557, in ogre_export
    xmlparent=doc._scene_nodes 
  File "/usr/local/share/blender/scripts/addons/io_export_ogreDotScene.py", line 3698, in _node_export
    self.dot_mesh( ob, os.path.split(url)[0] )
  File "/usr/local/share/blender/scripts/addons/io_export_ogreDotScene.py", line 3412, in dot_mesh
    dot_mesh( ob, path, force_name, ignore_shape_animation=False )
  File "/usr/local/share/blender/scripts/addons/io_export_ogreDotScene.py", line 5004, in dot_mesh
    uv1, uv2, uv3, uv4 = layer[ F.index ]
IndexError: list index out of range

location:<unknown location>:-1

location:<unknown location>:-1

What version of the product are you using? On what operating system?

Blender 2.58.0, blender2ogre 0.5.5, FreeBSD 8.2 AMD64, Python 3.2.

Please provide any additional information below.

Minor patch to line 399 of the script to allow it to run on FreeBSD (it assumes 
that unix is either 'linux' or 'darwin').

Original issue reported on code.google.com by goo...@io7m.com on 14 Oct 2011 at 11:02

Attachments:

GoogleCodeExporter commented 8 years ago
thanks for reporting this, problem was the mesh is in edit-mode, this is now 
fixed.  Also added "if sys.platform.startswith('freebsd')" where needed.
Pull from repo to get the fixes.

Original comment by goatman.py@gmail.com on 16 Oct 2011 at 4:59

GoogleCodeExporter commented 8 years ago
Thank you!

Original comment by goo...@io7m.com on 16 Oct 2011 at 5:12