diff --git a/src/app/script/image_class.cpp b/src/app/script/image_class.cpp index 62b9ff923..7d6b5c973 100644 --- a/src/app/script/image_class.cpp +++ b/src/app/script/image_class.cpp @@ -263,6 +263,13 @@ int Image_get_spec(lua_State* L) return 1; } +int Image_get_cel(lua_State* L) +{ + const auto obj = get_obj(L, 1); + push_docobj(L, obj->celId); + return 1; +} + const luaL_Reg Image_methods[] = { { "clone", Image_clone }, { "clear", Image_clear }, @@ -281,6 +288,7 @@ const Property Image_properties[] = { { "height", Image_get_height, nullptr }, { "colorMode", Image_get_colorMode, nullptr }, { "spec", Image_get_spec, nullptr }, + { "cel", Image_get_cel, nullptr }, { nullptr, nullptr, nullptr } };