File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626 elif format == ".fbx" :
2727 bpy .ops .export_scene .fbx (filepath = output_path )
2828 elif format == ".gltf" :
29- bpy .ops .export_scene .gltf (filepath = output_path )
29+ bpy .ops .export_scene .gltf (filepath = output_path , export_format = 'GLTF_SEPARATE' )
3030 elif format == ".x3d" :
3131 bpy .ops .export_scene .x3d (filepath = output_path )
3232 elif format == ".blend" :
Original file line number Diff line number Diff line change @@ -122,8 +122,7 @@ def run(self):
122122 self .process ["state" ] = self .process ["state" ] + 1
123123 self .update ("status" , "Create Object file" )
124124
125- check_output (
126- [
125+ cmd = [
127126 blender_install_path ,
128127 "-noaudio" , # this is a dockerfile ubuntu hax fix
129128 "--background" ,
@@ -133,6 +132,8 @@ def run(self):
133132 self .process ["format" ],
134133 "./storage/objects/" + self .process ["out" ],
135134 ]
135+ check_output (
136+ cmd
136137 )
137138
138139 self .process ["state" ] = self .process ["state" ] + 1
@@ -141,10 +142,11 @@ def run(self):
141142 # Don't remove target!
142143 # Remove data
143144 # TODO: handle multiple floorplan removeal
144- fh .remove ("./storage/data/" + self .process ["in" ] + "0/" )
145+ fh .remove ("./storage/data/" + self .process ["in" ] + "/ 0/" )
145146
146147 self .process ["state" ] = self .process ["state" ] + 1
147148 self .update ("status" , "Done" )
148149
149150 # Reindex here
150151 self .shared .reindex_files ()
152+ print (f"Done with task: { cmd } " )
Original file line number Diff line number Diff line change 2525 "../Blender/floorplan_to_3dObject_in_blender.py" ,
2626 "/home/floorplan_to_blender/Server/" ,
2727 "storage/objects/" + str (sys .argv [1 ]) + ".blend" ,
28- "storage/data/" + str (sys .argv [1 ]) + "0/" ,
28+ "storage/data/" + str (sys .argv [1 ]) + "/ 0/" ,
2929 ]
3030 )
3131 )
4141 "../Blender/floorplan_to_3dObject_in_blender.py" ,
4242 "/home/floorplan_to_blender/Server/" ,
4343 "storage/objects/" + str (sys .argv [1 ]) + ".blend" ,
44- "storage/data/" + str (sys .argv [1 ]) + "0/" ,
44+ "storage/data/" + str (sys .argv [1 ]) + "/ 0/" ,
4545 ]
4646 )
You can’t perform that action at this time.
0 commit comments