feat(rcf): attempt to use queue

This commit is contained in:
Swann Martinez
2019-04-11 18:07:59 +02:00
parent 65f85ee76d
commit f8da8a836d
3 changed files with 44 additions and 15 deletions

View File

@ -1,4 +1,5 @@
import bpy
import mathutils
from .libs import dump_anything
CORRESPONDANCE = {'Collection': 'collections', 'Mesh': 'meshes', 'Object': 'objects', 'Material': 'materials',
@ -111,9 +112,9 @@ def load_object(target=None, data=None, create=False):
target = bpy.data.objects.new(data["name"], pointer)
# Load other meshes metadata
dump_anything.load(target, data)
import mathutils
# Load other meshes metadata
dump_anything.load(target, data)
target.matrix_world = mathutils.Matrix(data["matrix_world"])
except: