This commit is contained in:
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:
|
||||
|
||||
@@ -48,6 +48,17 @@ bash -n scripts/check_architecture.sh scripts/quality_gate.sh
|
||||
printf 'Quality gate: architecture\n'
|
||||
bash scripts/check_architecture.sh
|
||||
|
||||
printf 'Quality gate: project import\n'
|
||||
if ! "$GODOT_EXECUTABLE" --headless \
|
||||
--log-file "$QUALITY_TEMP_DIRECTORY/import.log" \
|
||||
--path . \
|
||||
--import \
|
||||
>"$QUALITY_TEMP_DIRECTORY/import-console.log" 2>&1; then
|
||||
printf 'Quality gate: project import failed\n'
|
||||
cat "$QUALITY_TEMP_DIRECTORY/import-console.log"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
printf 'Quality gate: resource loading\n'
|
||||
"$GODOT_EXECUTABLE" --headless \
|
||||
--log-file "$QUALITY_TEMP_DIRECTORY/load.log" \
|
||||
|
||||
Reference in new issue
Block a user