Prepare iron to c port

This commit is contained in:
luboslenco
2024-02-03 16:07:49 +01:00
parent 37a7529fb8
commit e80509c4f6
71 changed files with 1194 additions and 1200 deletions
+3 -3
View File
@@ -14,7 +14,7 @@ class ImportTexture {
if (a.file == path) {
// Set as envmap
if (hdrAsEnvmap && path.toLowerCase().endsWith(".hdr")) {
Data.getImage(path, (image: Image) => {
Data.getImage(path, (image: ImageRaw) => {
Base.notifyOnNextFrame(() => { // Make sure file browser process did finish
ImportEnvmap.run(path, image);
});
@@ -30,7 +30,7 @@ class ImportTexture {
let cached = Data.cachedImages.get(path) != null; // Already loaded or pink texture for missing file
if (importer == null || cached) importer = ImportTexture.defaultImporter;
importer(path, (image: Image) => {
importer(path, (image: ImageRaw) => {
Data.cachedImages.set(path, image);
let ar = path.split(Path.sep);
let name = ar[ar.length - 1];
@@ -51,7 +51,7 @@ class ImportTexture {
});
}
static defaultImporter = (path: string, done: (img: Image)=>void) => {
static defaultImporter = (path: string, done: (img: ImageRaw)=>void) => {
Data.getImage(path, done);
}
}