Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixed Blender exporter's scene+embed mode #1379

Closed
wants to merge 1 commit into from

2 participants

@andrewgodwin

After exporting a few scenes in the Blender exporter and getting "deprecated format" errors, I investigated and found that the SceneLoader calls JSONLoader for the embedded meshes, which expects each embedded object to have a metadata object.

The two-line change I've done here modifies the exporter to include the metadata in the embedded mesh output.

@mrdoob
Owner

Hmmm... I thought this got fixed already with #863.
Have you tried using the builds in the dev branch?

@andrewgodwin

Ah, it looks like I was running the dev copy of the exporter, but I'd forgotten to load in my new build of the JS until after I 'fixed' this bug - you're entirely right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
View
4 utils/exporters/blender/2.62/scripts/addons/io_mesh_threejs/export_threejs.py
@@ -1659,7 +1659,7 @@ def generate_embeds(data):
for e in data["embeds"]:
- embed = '"emb_%s": {%s}' % (e, data["embeds"][e])
+ embed = '"emb_%s": %s' % (e, data["embeds"][e])
chunks.append(embed)
return ",\n\n".join(chunks)
@@ -1840,7 +1840,7 @@ def save(operator, context, filepath = "",
option_animation,
option_frame_step)
- embeds[name] = model_string
+ embeds[name] = text
else:
Something went wrong with that request. Please try again.