STEAM-GRUPPE
Blender Source Tools BleST
STEAM-GRUPPE
Blender Source Tools BleST
242
I SPIL
1,676
ONLINE
Grundlagt:
8. november 2013
Alle diskussioner > Bug Reports > Trådoplysninger
Exporting a model throws error and creates two duplicate objects
https://cdn.discordapp.com/attachments/1019720419495903308/1435613256550060264/image.png?ex=690c9a88&is=690b4908&hm=1f3afa184f50a3434dcd56827b75b9ec604ee54727aa9ad1ae2c2a28b1482581

This also happens when trying to use SourceIO side by side with SourceTools, blocking function of that add-on entirely.
< >
Viser 1-7 af 7 kommentarer
Artfunkel 5. nov. kl. 9:24 
The link is broken. Please copy the text instead of taking a screenshot of it.
Maybe this will work, I don't have the time to reproduce it again right now.

https://pasteboard.co/JDJXXAQ1FFjd.jpg
Artfunkel 5. nov. kl. 12:52 
This means that the exporter couldn't undo the changes it made to the scene. The actual error isn't in the screenshot, but you can capture it by copying the full message from the console window.

I won't be able to reproduce this without the original blend file.
I'll get on capturing the full log soon. The blend file however, this has been happening since Blender 4.0 I believe, in every single file that I create new or carry over from older Blender versions. And my blend files are typically huge so they're difficult to send over.
Theanine3D 18. nov. kl. 19:58 
I've encountered this same issue, and I found a workaround. The reason the error occurs is because the addon is expecting the Global Undo setting to be on (in your Blender preferences.) If the setting is disabled, exporting a SMD will throw that error message and create unnecessary copies of the object. (I've reproduced the error in Blender 4.x and in the new 5.0)

Enabling Global Undo instantly makes the error go away, and SMD exports finally work as normal.

Global Undo can be found in Blender preferences -> "System" tab -> scroll down to "Memory & Limits"
Sidst redigeret af Theanine3D; 18. nov. kl. 20:00
Theanine3D 18. nov. kl. 20:03 
And for reference, I just disabled Global Undo and then tried exporting so I could share the log of the error here.

Blender Source Tools: exporting light_tt_district2_8 - Baking... - \export\light_tt_district2_8.smd - No skeleton to export - Exported 451 polys - Exported 1 materials light_tt_district2_8 - SMD export took 0.015011310577392578 1 files exported in 0.1 seconds Traceback (most recent call last): File "C:\Users\Me\AppData\Roaming\Blender Foundation\Blender\5.0\scripts\addons\io_scene_valvesource\export_smd.py", line 260, in execute if bpy.app.debug_value <= 1: ops.ed.undo() ^^^^^^^^^^^^^ File "C:\Program Files\Blender Foundation\Blender 5.0\5.0\scripts\modules\bpy\ops.py", line 109, in __call__ ret = _op_call(self.idname_py(), kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: Operator bpy.ops.ed.undo.poll() failed, context is incorrect 04:57.047 bpy.rna | ERROR Python script error in EXPORT_SCENE_OT_smd.execute 04:57.047 operator | 1 files exported in 0.1 seconds 04:57.047 operator | ERROR Python: Traceback (most recent call last): | File "C:\Users\Me\AppData\Roaming\Blender Foundation\Blender\5.0\scripts\addons\io_scene_valvesource\export_smd.py", line 260, in execute | if bpy.app.debug_value <= 1: ops.ed.undo() | ^^^^^^^^^^^^^ | File "C:\Program Files\Blender Foundation\Blender 5.0\5.0\scripts\modules\bpy\ops.py", line 109, in __call__ | ret = _op_call(self.idname_py(), kw) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | RuntimeError: Operator bpy.ops.ed.undo.poll() failed, context is incorrect
Sidst redigeret af Theanine3D; 18. nov. kl. 20:07
@TheanineHD Thank you! That's a good find! I'll check (if I can remember next time, heh) soon once I get around to it!
< >
Viser 1-7 af 7 kommentarer
Per side: 1530 50

Alle diskussioner > Bug Reports > Trådoplysninger