@@ -502,7 +502,8 @@ def SetTransformFromJSON(js_obj, be_obj, engine_type: EngineType):
502502
503503
504504def RecordObjectOutputToJSON (objects_sets_dict , the_object , is_instance : bool ,
505- js_meshes : list , meshes_tmp_list : list , meshes_tmp_set : set ):
505+ js_meshes : list , meshes_tmp_list : list ,
506+ meshes_tmp_set : set , engine_type : EngineType ):
506507
507508 if is_instance :
508509 mesh = the_object .object .data
@@ -541,7 +542,7 @@ def RecordObjectOutputToJSON(objects_sets_dict, the_object, is_instance: bool,
541542 # Get Mesh to JSON
542543 elif "Mesh" not in js_object_data .keys ():
543544 if mesh not in meshes_tmp_set :
544- js_mesh = BEGeoUtils .MeshToJSONData (mesh )
545+ js_mesh = BEGeoUtils .MeshToJSONData (mesh , engine_type )
545546 js_meshes .append (js_mesh )
546547
547548 js_object_data ["Mesh" ] = len (meshes_tmp_list )
@@ -590,13 +591,15 @@ def GetBlenderOutputs(context, process_objs: list, engine_type: EngineType, is_G
590591 continue
591592
592593 RecordObjectOutputToJSON (objects_sets_dict , obj , False ,
593- js_meshes_list , meshes_tmp_list , meshes_tmp_set )
594+ js_meshes_list , meshes_tmp_list ,
595+ meshes_tmp_set , engine_type )
594596
595597 # GET INSTANCES
596598 for obj_instance in depsgraph .object_instances :
597599 if obj_instance .parent in process_ev_objs_set and obj_instance .is_instance :
598600 RecordObjectOutputToJSON (objects_sets_dict , obj_instance , True ,
599- js_meshes_list , meshes_tmp_list , meshes_tmp_set )
601+ js_meshes_list , meshes_tmp_list ,
602+ meshes_tmp_set , engine_type )
600603
601604 # Record Objects/Instances
602605 if objects_sets_dict :
0 commit comments