const Block *parent = find_root_input_block(L, blocks[input_idx]);
if (parent != nullptr) {
if (ret != nullptr) {
- luaL_error(L, "add_auto_white_balance() was connected to more than one input");
+ luaL_error(L, "add_white_balance() was connected to more than one input");
}
ret = parent;
}
return ret;
}
-int Scene::add_auto_white_balance(lua_State* L)
+int Scene::add_white_balance(lua_State* L)
{
assert(lua_gettop(L) >= 1);
Scene *scene = (Scene *)luaL_checkudata(L, 1, "Scene");
block->inputs.push_back(find_block_from_arg(L, scene, 2)->idx);
block->white_balance_controller_block = find_block_from_arg(L, scene, 3);
} else {
- luaL_error(L, "add_auto_white_balance([input], [white_balance_controller]) takes zero, one or two arguments");
+ luaL_error(L, "add_white_balance([input], [white_balance_controller]) takes zero, one or two arguments");
}
if (block->white_balance_controller_block == nullptr || !block->white_balance_controller_block->is_input) {
- luaL_error(L, "add_auto_white_balance() does not get its white balance from an input");
+ luaL_error(L, "add_white_balance() does not get its white balance from an input");
}
scene->blocks.push_back(block);