STEAM 组
Blender Source Tools BleST
STEAM 组
Blender Source Tools BleST
210
游戏中
1,455
在线
成立于
2013 年 11 月 8 日
所有讨论 > Bug Reports > 主题详情
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.
< >
正在显示第 1 - 7 条,共 7 条留言
Artfunkel 11 月 5 日 上午 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 11 月 5 日 下午 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 11 月 18 日 下午 7: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"
最后由 Theanine3D 编辑于; 11 月 18 日 下午 8:00
Theanine3D 11 月 18 日 下午 8: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
最后由 Theanine3D 编辑于; 11 月 18 日 下午 8: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!
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50

所有讨论 > Bug Reports > 主题详情