Skip to content

Commit

Permalink
Release v0.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
AchimStremplat committed Nov 25, 2021
1 parent 5291c80 commit f117578
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 3 additions & 1 deletion components/libRamsesBase/tests/RamsesLogic_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<float>(std::acos(-1.0));
script->getInputs()->getChild("float")->set(pi);
Expand Down
2 changes: 1 addition & 1 deletion third_party/ramses-logic

0 comments on commit f117578

Please sign in to comment.