You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file was originally sent in by the comment here: #67275 (comment)
It seems as though blend files with single quotes are somehow not invoking the blender conversion correctly. I think it's escaping it with backslashes but generating XML which is not the correct escape for XML
"C:\Program Files\Blender Foundation\Blender 3.4\blender.exe" --background --python-expr "
import bpy, sys, threading
from xmlrpc.server import SimpleXMLRPCServer
req = threading.Condition()
res = threading.Condition()
info = None
def xmlrpc_server():
server = SimpleXMLRPCServer(('127.0.0.1', 6011))
server.register_function(export_gltf)
server.serve_forever()
def export_gltf(opts):
with req:
global info
info = ('export_gltf', opts)
req.notify()
with res:
res.wait()
if bpy.app.version < (3, 0, 0):
print('Blender 3.0 or higher is required.', file=sys.stderr)
threading.Thread(target=xmlrpc_server).start()
while True:
with req:
while info is None:
req.wait()
method, opts = info
if method == 'export_gltf':
try:
bpy.ops.wm.open_mainfile(filepath=opts['path'])
if opts['unpack_all']:
bpy.ops.file.unpack_all(method='USE_LOCAL')
bpy.ops.export_scene.gltf(**opts['gltf_options'])
except:
pass
info = None
with res:
res.notify()
"
These are the packets sent to port 6011, as captured by wireshark:
yet the output log just says Condition "err != OK" is true so Godot is throwing away this error message and not presenting it to the user.
Also, the error message seems like another bug that stems from Blender failing to convert, so it would also be good to improve the error handling on Blender's end too.
Godot version
4.0, 4.1.beta.custom_build.e92abf33e
System information
Godot v4.1.beta (e92abf33e) - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3090 (NVIDIA; 31.0.15.2756) - Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 Threads)
Issue description
This file was originally sent in by the comment here: #67275 (comment)
It seems as though blend files with single quotes are somehow not invoking the blender conversion correctly. I think it's escaping it with backslashes but generating XML which is not the correct escape for XML
This is the command line reported by windows:
These are the packets sent to port 6011, as captured by wireshark:
reply:
Steps to reproduce
Minimal reproduction project
BlendSingleQuote.zip
The text was updated successfully, but these errors were encountered: