Audio/Sound: Fix copy constructor not copying looping state

This commit is contained in:
Lynix 2018-04-08 18:50:42 +02:00
parent ae2fd0069a
commit c9904e7d20
2 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,7 @@ Nazara Engine:
- Fix copy and move semantic on HandledObject and ObjectHandle
- Add support for emissive and normal maps in .mtl loader using custom keywords ([map_]emissive and [map_]normal)
- Music, Sound and SoundEmitter are now movable
- Fixed Sound copy which was not copying looping state
Nazara Development Kit:
- Added ImageWidget (#139)

View File

@ -37,6 +37,7 @@ namespace Nz
SoundEmitter(sound)
{
SetBuffer(sound.m_buffer);
EnableLooping(sound.IsLooping());
}
/*!