diff --git a/docs/src/index.md b/docs/src/index.md index fdc32d5..b7598b9 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -99,6 +99,7 @@ julia -JModia3D_sysimage.so (otherwise) - Add Result Element SensorResult - Enable kinematic chain flipping for structure variable systems - Avoid function code generation for linear stiffness and damping in SpringDamperPtP and Bushing +- Enable FileMesh support in AnimationExport for other mesh file formats than obj ### Version 0.12.2 diff --git a/src/AnimationExport/exportAnimation.jl b/src/AnimationExport/exportAnimation.jl index 05e42d8..41b8239 100644 --- a/src/AnimationExport/exportAnimation.jl +++ b/src/AnimationExport/exportAnimation.jl @@ -255,15 +255,12 @@ function exportObject(object, elements, obj::Modia3D.Composition.Object3D, fileM (head,ext) = splitext(filenameOld) if ext == ".json" filename = filenameOld - elseif ext == ".obj" + else filename = head * ".json" if !isfile(filename) - @warn("Please convert $filenameOld into a .json file.") - return nothing + @warn("Only FileMeshes in three.js json object scene format are supported by AnimationExport.\nPlease convert $filenameOld into a .json file and move it to the same folder.") + return (nothing, nothing) end - else - @warn("Please convert $filenameOld into a .json file.") - return nothing end io = open(filename, "r")