0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

obs-scripting: Update text source IDs

This commit is contained in:
Clayton Groeneveld 2020-02-21 22:46:37 -06:00
parent d93951e11e
commit 44bb7e690b
2 changed files with 2 additions and 2 deletions

View File

@ -112,7 +112,7 @@ function script_properties()
if sources ~= nil then
for _, source in ipairs(sources) do
source_id = obs.obs_source_get_id(source)
if source_id == "text_gdiplus" or source_id == "text_ft2_source" then
if source_id == "text_gdiplus" or source_id == "text_ft2_source" or source_id == "text_gdiplus_v2" or source_id == "text_ft2_source_v2" then
local name = obs.obs_source_get_name(source)
obs.obs_property_list_add_string(p, name, name)
end

View File

@ -67,7 +67,7 @@ def script_properties():
if sources is not None:
for source in sources:
source_id = obs.obs_source_get_id(source)
if source_id == "text_gdiplus" or source_id == "text_ft2_source":
if source_id == "text_gdiplus" or source_id == "text_ft2_source" or source_id == "text_gdiplus_v2" or source_id == "text_ft2_source_v2":
name = obs.obs_source_get_name(source)
obs.obs_property_list_add_string(p, name, name)