From f117578ec3ab2a081aab6ab06d6cdf2893d884b8 Mon Sep 17 00:00:00 2001 From: Achim Stremplat Date: Thu, 25 Nov 2021 23:41:58 +0100 Subject: [PATCH] Release v0.9.3 --- CHANGELOG.md | 10 ++++++++++ CMakeLists.txt | 2 +- components/libRamsesBase/tests/RamsesLogic_test.cpp | 4 +++- third_party/ramses-logic | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f1246091..e736d94b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,16 @@ If a copy of the MPL was not distributed with this file, You can obtain one at h ### Known Bugs --> +## [0.9.3] Update to ramses-logic 0.12.0 + +### Changes +* Update from ramses-logic 0.11.0 to ramses-logic 0.12.0 + * BREAKING CHANGE: It is no longer possible to use global variables in the Lua Scripts functions. + * There are now better alternatives: + * [init() function](https://ramses-logic.readthedocs.io/en/v0.11.0/lua_syntax.html#global-variables-and-the-init-function) + * [Custom modules](https://ramses-logic.readthedocs.io/en/v0.11.0/lua_syntax.html#custom-modules) + * Docs for new behavior: see [Lua docs](https://ramses-logic.readthedocs.io/en/v0.12.0/lua_syntax.html#environments-and-isolation) + ## [0.9.2] ### Changes diff --git a/CMakeLists.txt b/CMakeLists.txt index 96d8155e..c4c61788 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ cmake_minimum_required(VERSION 3.19) SET(CMAKE_CONFIGURATION_TYPES "Debug;RelWithDebInfo") -project(RaCoOS VERSION 0.9.2) +project(RaCoOS VERSION 0.9.3) SET(RACO_RELEASE_DIRECTORY ${CMAKE_BINARY_DIR}/release) diff --git a/components/libRamsesBase/tests/RamsesLogic_test.cpp b/components/libRamsesBase/tests/RamsesLogic_test.cpp index 09cae412..c45f3a37 100644 --- a/components/libRamsesBase/tests/RamsesLogic_test.cpp +++ b/components/libRamsesBase/tests/RamsesLogic_test.cpp @@ -394,7 +394,9 @@ function run() end )"}; - auto* script = logicEngine.createLuaScript(scriptContentFloat); + rlogic::LuaConfig luaConfig; + luaConfig.addStandardModuleDependency(rlogic::EStandardModule::All); + auto* script = logicEngine.createLuaScript(scriptContentFloat, luaConfig); const float pi = static_cast(std::acos(-1.0)); script->getInputs()->getChild("float")->set(pi); diff --git a/third_party/ramses-logic b/third_party/ramses-logic index 2bec3969..0e3eb067 160000 --- a/third_party/ramses-logic +++ b/third_party/ramses-logic @@ -1 +1 @@ -Subproject commit 2bec396937d8640ea39f28a9448e4d8807b11a1a +Subproject commit 0e3eb067337f972d385115c8bf06cf3a4743fb5c