File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed
mirror-godot-app/scripts/autoload Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -244,27 +244,6 @@ static func looks_like_json(value) -> bool:
244244 return has_braces or has_brackets
245245
246246
247- ## Loads a GLTF file from the disk as a node object.
248- static func load_gltf_file_as_node (path : String ) -> Variant :
249- var state : GLTFState = GLTFState .new ()
250- if Zone .is_host ():
251- # Discard the textures when on the server
252- state .set_handle_binary_image (GLTFState .HANDLE_BINARY_DISCARD_TEXTURES )
253- var doc : GLTFDocument = GLTFDocument .new ()
254- var err = doc .append_from_file (path , state , 8 )
255- if err :
256- push_error (str (err ))
257- return null
258- var node : Node = doc .generate_scene (state )
259- if not is_instance_valid (node ):
260- print_debug ("generate_scene failed from path:" , path )
261- return null
262- # Disallow importing a model with an empty root node name.
263- if node .name == & "" :
264- node .name = & "Model"
265- return node
266-
267-
268247## Converts a GLTF document (including all its external dependencies ) to a GLB byte array.
269248## See https://github.com/the-mirror-megaverse/mirror-godot-app/pull/261 for why
270249static func convert_gltf_to_glb_data (path : String ) -> PackedByteArray :
You can’t perform that action at this time.
0 commit comments