Releases: Hampo/LuaP3DLib
Releases · Hampo/LuaP3DLib
v2.2
What's Changed
- Updating example mod
Meta.ini
- Fixed the constructors of
CollisionObjectP3DChunk
andCollisionVectorP3DChunk
- Fixing typo in
LocatorP3DChunk
constructor - Added
__pairs
metamethod toP3DChunk
class to only output properties if a known chunk, andValueStr
if unknown - Improved
__pairs
metamethod implementation forP3DChunk
class - Improved
P3D.DecompressBlock
- Added
Path
to invalid P3D file error - Replaced slow
table_pack
with faster{}
- Added local reference to
tostring
for faster building - Minor optimisation to
FrontendLanguage
class - Added a missing assert in
FrontendLanguageP3DChunk:GetNameHash
- Added
Clone
method toP3DFile
andP3DChunk
- Remove redundant comment
- Fixed a bug in
:GetChunks
and:GetChunksIndexed
where it looked atchunksN
instead ofchunkN
- Fixed
:Clone()
incorrectly cloning the metatable too. Should use the standard metatable of the chunk type. - Added
:Match(Filters)
- Added
:Find(Filters, Backwards)
- Added
:FindFirst(Filters, Backwards)
- Added
:Replace(NewChunk)
- Fixed a bug in
Mesh
constructor - Improved
OldPrimitiveGroupP3DChunk
UV List handling - Fixed a bug in
OldPrimitiveGroupP3DChunk
constructor - Improved
OldPrimitiveGroupP3DChunk
GetVertexType()
- Fixed a bug in
FrontendLanguageP3DChunk:SetValue
- Fixed a bug in
OldIndexOffsetListP3DChunk:__tostring()
- Started implementation of Vector maths
- Fixed a typo in
Float2ChannelP3DChunk
(Thanks @mazexz7 for pointing it out) - Fixed a bug when adding a chunk by index to the end of the chunk list
Full Changelog: v2.1...v2.2
v2.1
- Complete VertexMask in
OldPrimitiveGroupP3DChunk
- Improved error on
FrontendLanguageP3DChunk:GetValueFromName
- Removed unused data from
RoadP3DChunk
- Updated
RoadP3DChunk
to usex
instead ofB
with hardcoded0
- Removed unused chunks
- Fixed
__call
inP3DChunk
- Updated print to include source
- Added basic implementation of
P3D.Vector2
,P3D.Vector3
,P3D.SymmetricMatrix3x3
,P3D.Quaternion
,P3D.Matrix
andP3D.Colour
- Fixed child chunks not having chunk functions
- Added a version print on load
- Updated Example to v2.1
- Fixed an error in constructor of
ImageDataP3DChunk
- Fixed
ImageCount
not auto calculating inSpriteP3DChunk
- Fixed a grammatical error in
P3D.LoadChunks