Rename createSingeColorImage -> createSingleColorImage

This commit is contained in:
Alexander Bock
2021-03-22 23:17:42 +01:00
parent c7f77e3286
commit dfc42e9467
5 changed files with 15 additions and 15 deletions

View File

@@ -1609,8 +1609,8 @@ scripting::LuaLibrary OpenSpaceEngine::luaLibrary() {
"Removes a tag (second argument) from a scene graph node (first argument)"
},
{
"createSingeColorImage",
&luascriptfunctions::createSingeColorImage,
"createSingleColorImage",
&luascriptfunctions::createSingleColorImage,
{},
"string, vec3",
"Creates a 1 pixel image with a certain color in the cache folder and "

View File

@@ -294,11 +294,11 @@ int downloadFile(lua_State* L) {
/**
* \ingroup LuaScripts
* createSingeColorImage():
* createSingleColorImage():
* Creates a one pixel image with a given color and returns the path to the cached file
*/
int createSingeColorImage(lua_State* L) {
ghoul::lua::checkArgumentsAndThrow(L, 2, "lua::createSingeColorImage");
int createSingleColorImage(lua_State* L) {
ghoul::lua::checkArgumentsAndThrow(L, 2, "lua::createSingleColorImage");
const std::string& name = ghoul::lua::value<std::string>(L, 1);
const ghoul::Dictionary& d = ghoul::lua::value<ghoul::Dictionary>(L, 2);