From e81527264972cc0486bab121cb80e16b6702052b Mon Sep 17 00:00:00 2001 From: Antoine Pilote Date: Mon, 2 Oct 2023 01:32:57 -0400 Subject: [PATCH] Added back rotation script api --- Nuake/src/Scripting/Modules/SceneModule.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Nuake/src/Scripting/Modules/SceneModule.h b/Nuake/src/Scripting/Modules/SceneModule.h index 26edab44..26f7fa3e 100644 --- a/Nuake/src/Scripting/Modules/SceneModule.h +++ b/Nuake/src/Scripting/Modules/SceneModule.h @@ -365,9 +365,9 @@ namespace Nuake Entity ent = Entity((entt::entity)handle, Engine::GetCurrentScene().get()); auto& transform = ent.GetComponent(); // set the slots - //wrenSetSlotDouble(vm, 1, transform.Rotation.x); - //wrenSetSlotDouble(vm, 2, transform.Rotation.y); - //wrenSetSlotDouble(vm, 3, transform.Rotation.z); + wrenSetSlotDouble(vm, 1, transform.Rotation.x); + wrenSetSlotDouble(vm, 2, transform.Rotation.y); + wrenSetSlotDouble(vm, 3, transform.Rotation.z); // Fill the list wrenSetSlotNewList(vm, 0);