MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / Load

Method Load

plugins/base/utils/transition-selection.cpp:25–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23}
24
25void TransitionSelection::Load(obs_data_t *obj, const char *name,
26 const char *typeName)
27{
28 _type = static_cast<Type>(obs_data_get_int(obj, typeName));
29 auto target = obs_data_get_string(obj, name);
30 switch (_type) {
31 case Type::TRANSITION:
32 _transition = GetWeakTransitionByName(target);
33 break;
34 default:
35 break;
36 }
37}
38
39OBSWeakSource TransitionSelection::GetTransition() const
40{

Callers

nothing calls this directly

Calls 1

GetWeakTransitionByNameFunction · 0.85

Tested by

no test coverage detected