mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Fix virtual camera action selection causing a crash
The Create() and Copy() functions were not correctly implemented and returned a nullptr
This commit is contained in:
parent
daf16357c9
commit
132d89b350
|
|
@ -67,12 +67,12 @@ bool MacroActionVCam::Load(obs_data_t *obj)
|
|||
|
||||
std::shared_ptr<MacroAction> MacroActionVCam::Create(Macro *m)
|
||||
{
|
||||
return std::shared_ptr<MacroAction>();
|
||||
return std::make_shared<MacroActionVCam>(m);
|
||||
}
|
||||
|
||||
std::shared_ptr<MacroAction> MacroActionVCam::Copy() const
|
||||
{
|
||||
return std::shared_ptr<MacroAction>();
|
||||
return std::make_shared<MacroActionVCam>(*this);
|
||||
}
|
||||
|
||||
static inline void populateActionSelection(QComboBox *list)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user