mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-20 20:40:26 -05:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user