Zloyded12 / blender-smd

Automatically exported from code.google.com/p/blender-smd
0 stars 0 forks source link

Error on export a model without any armature #41

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Open blender
2. Go to Scene Properties tab
3.Select the Cube
4.Configure any output folder and target engine
5. Press Scene as configured

What is the expected output? What do you see instead?
I expect to get a model.smd in my folder, and i get, but when i go compile 
it(with dota2 workshop option) i get a error. Besides that, when i open smd 
file, looks like some thigs is missing, like a empty file. I get too a 
duplicate of my object that i'm tryng to export. And, i get a message erro, 
like a stacktrace of the error in the python script.

There is the message: 
Traceback(most recent call last):
File"C:\YouDontReallyNeedtoKnowThis\io_smd_tools.py",line 3395, in invoke
return self.execute(context)
File"C:\YouDontReallyNeedtoKnowThis\io_smd_tools.py",line 3263, in invoke
self.exportObject(context,context.active_object,groupIndex=props.groupIndex)
File"C:\YouDontReallyNeedtoKnowThis\io_smd_tools.py",line 3359, in invoke
if writeSMD(context,object,groupIndex,path + getFileExt)
File"C:\YouDontReallyNeedtoKnowThis\io_smd_tools.py",line 2700, in invoke
writeFrames()
File"C:\YouDontReallyNeedtoKnowThis\io_smd_tools.py",line 2159, in invoke
action = smd.a.animation_data.action
AttributeError: 'NoneType' object has no attribute 'animation_data'
location:<uknown location>:-1

What version of the product are you using? On what operating system?
Blender 2.63, in win 7 64-bit. I push the "Check for updates" button yesterday, 
so i assume that is the lastest version.

Please provide any additional information below.
I have not usedd the fiel QC compiles, if that matter. I have some sort of 
knowlegde in programaming, and i teyed to debug myself the file, but the lack 
of tools in my computer blocked me. I could see that, when the object have no 
armature, the script try to create one (empty) for the object, but for some 
reason, "a" is empty.I gladly could fix this, since i found another person 
reporting similar problems, but i have no idea off how the api off blender 
works. If some one could give me some direction to know what is going on, i 
could help the comunity as well.

Original issue reported on code.google.com by elis...@ecomp.eng.br on 1 Aug 2012 at 9:28

GoogleCodeExporter commented 8 years ago
Already fixed, hit the update button again. Thanks for the report though! :)

Original comment by cont...@steamreview.org on 2 Aug 2012 at 5:11

GoogleCodeExporter commented 8 years ago
Wow, thaks man. Only if half of the open source projects goes like that...

Original comment by elis...@ecomp.eng.br on 2 Aug 2012 at 9:58