- (DEPENDENCY)
caff-archive
added to dependencies. - (FEATURE)
caff-archive
re-exported asorphism::caff
.
- (FEATURE) All types now implement
Clone
(exceptRuntime
). - (FEATURE)
Model
now implementsPartialEq
. - (FEATURE) Added enriched types that preserve information about the file they were loaded from.
model::DisplayInfo
model::Expression
model::MotionSync
model::Motion
model::Physics
model::Pose
model::Sound
model::Texture
- (FEATURE)
model::Sound
andmodel::Texture
also perform media type detection when loaded.- this should make them easier to load correctly into other programs.
- (BREAKING) merged
Model
andModelData
into a single struct:Model
.Model::load
now takes an ownedmodel3::Model3
as input.Model.moc
renamed toModel.data
Model.display_info
type changed fromcdi3::DisplayInfo3
tomodel::DisplayInfo
, previous data is at the.data
field of that struct.Model.expression
type changed fromVec<exp3::Expression3>
toVec<model::Expression>
, previous data is at the.data
field of that struct.Model.motion_sync
type changed fromOption<motionsync3::MotionSync3>
toOption<model::MotionSync>
, previous data is at the.data
field of that struct.Model.motion
type changed fromBTreeMap<String, motion3::Motion3>
toBTreeMap<String, model::Motion>
, previous data is at the.data
field of that struct.Model.physics
type changed fromOption<physics3::Physics3>
toOption<model::Physics>
, previous data is at the.data
field of that struct.Model.pose
type changed fromOption<pose3::Pose3>
toOption<model::Pose>
, previous data is at the.data
field of that struct.Model.textures
type changed fromVec<Vec<u8>>
toVec<model::Texture>
, previous data is at the.data
field of that struct.model::Motion.sound
type changed fromOption<Vec<u8>>
toOption<model::Sound>
, previous data is at the.data
field of that struct.
- (BREAKING) Added three new error variants:
Error::MediaTypeInferenceFailed
for wheninfer
cannot detect the media type.Error::MediaType(mediatype::MediaTypeError)
for whenmediatype
cannot parse the inferred MIME type.Error::Moc3(moc3::Error)
to unify the error interface.
- (BREAKING)
Runtime::load()
renamed toRuntime::load_model()
for clarity.