Fixed a bug caused by a typo in the LoadModel function call. The issue occurred because LoadModel(scene, fileName, transformMatrix, rootEntity) was mistakenly called instead of LoadModel2(scene, fileName, transformMatrix, rootEntity). The compiler did not catch this mistake because the last parameter of LoadModel is a boolean, and rootEntity was incorrectly used to satisfy that parameter.
Fixed an issue where pressing the delete key would remove an entity if the mouse was hovering over the entity tree list, instead of deleting a character in the TextInputField.
- Added functionality to prevent calling the backlog when the Home key is pressed while typing in the TextField.
The hotkeys could be called even while typing in the TextInputField. I found out that the following part from TextInputField::Update was causing this
if (state == DEACTIVATING)
{
state = IDLE;
typing_active = false;
}
So, I moved typing_active = false closer to the two lines calling Deactivate() in TextInputField::Update().
- Using explicit conversion when calling std::signbit() in AnimationWindow::speedSlider::OnSlide() to resolve the warning during compilation.
- Moved AnimationWindow::lastDirection to local scope within AnimationWindow::speedSlider::OnSlide(), as it is only used there.
Add new logic and buttons to AnimationWindow for playing backwards and for the new loop types.
Add new methods to control looping: AnimationComponent::IsPingPong, AnimationComponent::IsPlayingOnce, AnimationComponent::SetPingPong, and AnimationComponent::SetPlayOnce.
Add checks in Scene::RunAnimationUpdateSystem for the new loops when the animation reaches the end.
After a discussion with Matteo, we decided it's better
to use if_different on CMake 3.26+ and just copy_directory
on previous versions. It seems to copy less files each run,
so it's good to use it if available.
I accidentially used a CMake 3.26+ only command.
Copying the content directory doesn't take that long, so requiring 3.26
doesn't seem to be worth it at the time. So just replace it with
copy_directory
* Fixed windows template not being included
* added and modified cmake files
added cmake in the template folder
modified cmake file in root directory because we dont need platform depenedend option imo