Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
fail-fast: false
matrix:
version:
- '1.10.0'
- '1.10'
os:
- ubuntu-latest
- windows-latest
Expand Down
17 changes: 9 additions & 8 deletions src/AnimationExport/exportAnimation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -271,16 +271,17 @@ function exportObject(object, elements, obj::Modia3D.Composition.Object3D, fileM
# overwrite materials of mesh object children
materialName = Modia3D.fullName(obj) * ".material"
for material in meshObject["materials"]
push!(material, "name" => materialName, "uuid" => name2uuid(materialName))
material["name"] = materialName
material["uuid"] = name2uuid(materialName)
if fileMesh.useMaterialColor
push!(material, "color" => colorNum(obj.visualMaterial.color[1], obj.visualMaterial.color[2], obj.visualMaterial.color[3]))
material["color"] = colorNum(obj.visualMaterial.color[1], obj.visualMaterial.color[2], obj.visualMaterial.color[3])
end
if fileMesh.doubleSided
push!(material, "side" => 2) # THREE.DoubleSide
material["side"] = 2 # THREE.DoubleSide
end
end
for child in (meshObject["object"])["children"]
push!(child, "material" => name2uuid(materialName))
child["material"] = name2uuid(materialName)
end
end

Expand All @@ -293,11 +294,11 @@ function exportObject(object, elements, obj::Modia3D.Composition.Object3D, fileM
end

function getObjectInfoMesh(obj, initPos, initRot, scale, R_obj, meshInfo)
push!(meshInfo, "name" => Modia3D.fullName(obj) )
meshInfo["name"] = Modia3D.fullName(obj)
delete!(meshInfo, "matrix")
push!(meshInfo, "position" => initPos )
push!(meshInfo, "rotation" => Modia3D.rot123fromR(R_obj*initRot) )
push!(meshInfo, "scale" => scale )
meshInfo["position"] = initPos
meshInfo["rotation"] = Modia3D.rot123fromR(R_obj*initRot)
meshInfo["scale"] = scale

return meshInfo
end
Expand Down
4 changes: 3 additions & 1 deletion test/includeTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ end
Test.@testset "Segmented" begin
include(joinpath("Segmented", "TwoStageRocket3D.jl"))
if testsExtend >= normalTests
include(joinpath("Segmented", "YouBotDynamicState.jl"))
if Sys.iswindows()
include(joinpath("Segmented", "YouBotDynamicState.jl"))
end
include(joinpath("Segmented", "YouBotFixBox.jl"))
include(joinpath("Segmented", "YouBotFixSphere.jl"))
include(joinpath("Segmented", "ScenarioSegmentedCollisionOff.jl"))
Expand Down
Loading