Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit ef2ef3c

Browse files
cleanup
1 parent accfe6b commit ef2ef3c

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ add_custom_command(TARGET ${PROJECT_NAME} PRE_BUILD
4242

4343

4444
target_link_libraries(${PROJECT_NAME} PUBLIC
45+
lua
46+
love_3p_luasocket
4547
OFS_lib
4648
)
4749

@@ -51,9 +53,6 @@ if(WIN32)
5153
COMMAND ${CMAKE_COMMAND} -E copy
5254
"${CMAKE_SOURCE_DIR}/lib/libmpv/mpv-1.dll" "$<TARGET_FILE_DIR:${PROJECT_NAME}>/mpv-1.dll"
5355
DEPENDS "$<TARGET_FILE_DIR:${PROJECT_NAME}>/mpv-1.dll")
54-
target_link_libraries(${PROJECT_NAME} PRIVATE lua love_3p_luasocket)
55-
else()
56-
target_link_libraries(${PROJECT_NAME} PRIVATE lua love_3p_luasocket)
5756
endif()
5857

5958
target_compile_definitions(${PROJECT_NAME} PUBLIC

src/lua/OFS_LuaCoreExtension.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ function spline_smooth()
8787
local script = ofs.Script(ofs.ActiveIdx())
8888
local actionCount = #script.actions
8989
90+
if not ofs.HasSelection(script) then
91+
return
92+
end
93+
9094
local smoothedActions = {}
9195
9296
for idx, action in ipairs(script.actions) do

src/lua/OFS_LuaExtensions.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,5 +123,6 @@ class OFS_LuaExtensions
123123
{
124124
OFS_REFLECT(Extensions, ar);
125125
OFS_REFLECT(DevMode, ar);
126+
OFS_REFLECT(ShowLogs, ar);
126127
}
127128
};

0 commit comments

Comments
 (0)