mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 08:57:54 +00:00
Fix Drag and Drop Image, I had thought this change was already in.
This commit is contained in:
1 parent
221d8bb95a
commit
d007cb81d5
1 file changed
+1
-1
@@ -625,7 +625,7 @@ export const useSceneStore = create<SceneState>((set, get) => ({
|
||||
const file = new File([blob], filename, { type: blob.type });
|
||||
|
||||
// Use existing createImage function
|
||||
get().createImage(x, y, file, width, height);
|
||||
get().createImageFromFile(x, y, file, width, height);
|
||||
} catch (error) {
|
||||
console.error("Error loading image from URL:", url, error);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user