Skip to content

Commit 6856861

Browse files
committed
Update cmakelists
1 parent d2e21b9 commit 6856861

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ include("${CMAKE_CURRENT_SOURCE_DIR}/cmake/common/bootstrap.cmake" NO_POLICY_SCO
44

55
project(${_name} VERSION ${_version})
66

7-
option(ENABLE_FRONTEND_API "Use obs-frontend-api for UI functionality" OFF)
7+
option(ENABLE_FRONTEND_API "Use obs-frontend-api for UI functionality" ON)
88
option(ENABLE_QT "Use Qt functionality" OFF)
99

1010
include(compilerconfig)
@@ -35,5 +35,6 @@ if(ENABLE_QT)
3535
endif()
3636

3737
target_sources(${CMAKE_PROJECT_NAME} PRIVATE src/plugin-main.c)
38+
target_sources(${CMAKE_PROJECT_NAME} PRIVATE src/source-defaults-filter.c)
3839

3940
set_target_properties_plugin(${CMAKE_PROJECT_NAME} PROPERTIES OUTPUT_NAME ${_name})

CMakePresets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"name": "template",
1111
"hidden": true,
1212
"cacheVariables": {
13-
"ENABLE_FRONTEND_API": false,
13+
"ENABLE_FRONTEND_API": true,
1414
"ENABLE_QT": false
1515
}
1616
},

src/source-defaults-filter.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ with this program. If not, see <https://www.gnu.org/licenses/>
2121
#include <util/dstr.h>
2222
#include <util/base.h>
2323

24-
#include "plugin-macros.generated.h"
24+
#include "plugin-support.h"
2525

2626
// so that old sources don't return with an empty settings object,
2727
// thus letting us distinguish between "new" sources and recreated sources due to undo/redo
@@ -190,8 +190,8 @@ static void copy_transform(obs_sceneitem_t *src, obs_sceneitem_t *dst)
190190
{
191191
obs_sceneitem_defer_update_begin(dst);
192192
struct obs_transform_info info;
193-
obs_sceneitem_get_info(src, &info);
194-
obs_sceneitem_set_info(dst, &info);
193+
obs_sceneitem_get_info2(src, &info);
194+
obs_sceneitem_set_info2(dst, &info);
195195

196196
struct obs_sceneitem_crop crop;
197197
obs_sceneitem_get_crop(src, &crop);

0 commit comments

Comments
 (0)