mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Fix import of incomplete settings not resetting duration to zero
This commit is contained in:
parent
0b622fdbed
commit
6a58684854
|
|
@ -29,6 +29,7 @@ void Duration::Load(obs_data_t *obj, const char *name)
|
|||
// TODO: remove this fallback
|
||||
if (!data || !obs_data_has_user_value(data, "version") ||
|
||||
obs_data_get_int(data, "version") != 1) {
|
||||
_value = 0.;
|
||||
bool usingDefaultArgs = strcmp("duration", name) == 0;
|
||||
if (usingDefaultArgs) {
|
||||
_value = obs_data_get_double(obj, "seconds");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user