mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-06 19:39:56 -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -41,8 +41,7 @@ public:
|
||||
using TemplateProperty<volume::TransferFunction>::operator=;
|
||||
|
||||
protected:
|
||||
volume::TransferFunction fromLuaConversion(lua_State* state,
|
||||
bool& success) const override;
|
||||
volume::TransferFunction fromLuaConversion(lua_State* state) const override;
|
||||
void toLuaConversion(lua_State* state) const override;
|
||||
std::string toStringConversion() const override;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user