fix(ImageTo3D): enforce glb format in Meshy API payload
Build and Deploy / build-and-push (push) Successful in 46s
Build and Deploy / build-and-push (push) Successful in 46s
This commit is contained in:
@@ -301,7 +301,8 @@ export const ImageTo3DModal: React.FC<ImageTo3DModalProps> = ({ isOpen, onClose,
|
||||
image_url: dataUrl,
|
||||
model_type: meshyModelType,
|
||||
should_texture: meshyShouldTexture,
|
||||
should_enhance_image: meshyEnhanceImage
|
||||
should_enhance_image: meshyEnhanceImage,
|
||||
target_formats: ['glb']
|
||||
};
|
||||
|
||||
if (meshyModelType !== 'lowpoly') {
|
||||
|
||||
@@ -403,6 +403,7 @@ export default function Editor() {
|
||||
if (sd.cameraPresets) setCameraPresets(sd.cameraPresets);
|
||||
|
||||
if (sd.modelData && sd.modelData.data) {
|
||||
setModelData(sd.modelData);
|
||||
reImportModel(sd.modelData);
|
||||
}
|
||||
}
|
||||
@@ -992,6 +993,7 @@ export default function Editor() {
|
||||
|
||||
// Re-load model if data exists
|
||||
if (data.modelData && data.modelData.data) {
|
||||
setModelData(data.modelData);
|
||||
reImportModel(data.modelData);
|
||||
}
|
||||
} catch (err) {
|
||||
@@ -5300,3 +5302,5 @@ export default function Editor() {
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user