Centralize the extraction of Lua values and fix bug when trying to extract the first parameter of a Lua parameter pack

This commit is contained in:
Alexander Bock
2023-03-07 01:56:17 +01:00
parent 14cf1d3962
commit 0831b00a77
75 changed files with 43 additions and 438 deletions

View File

@@ -41,10 +41,9 @@ int TransferFunctionProperty::typeLua() const {
}
openspace::volume::TransferFunction
TransferFunctionProperty::fromLuaConversion(lua_State* state, bool& success) const
{
TransferFunctionProperty::fromLuaConversion(lua_State* state) const {
openspace::volume::TransferFunction tf;
success = tf.setEnvelopesFromLua(state);
tf.setEnvelopesFromLua(state);
return tf;
}