Initialize Godot imports in quality gate
Quality Gate / Quality Gate (push) Successful in 2m55s

This commit is contained in:
chindit committed 2026-10-06 08:43:39 +02:00
1 parent 22235a9c2d
commit 912123087f
2 files changed
+15 -4

No files matched your search

@@ -177,12 +177,12 @@ func _textured_material(
return material
func _load_texture(resource_path: String) -> ImageTexture:
var image := Image.load_from_file(resource_path)
if image == null or image.is_empty():
func _load_texture(resource_path: String) -> Texture2D:
var texture := ResourceLoader.load(resource_path, "Texture2D") as Texture2D
if texture == null:
push_error("Unable to load cockpit texture: %s" % resource_path)
return null
return ImageTexture.create_from_image(image)
return texture
func _dedicated_gauge_material(resource_path: String) -> StandardMaterial3D: