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

Function handleRot

plugins/base/utils/transform-setting.cpp:161–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161static void handleRot(struct obs_transform_info &info, const std::string &value)
162{
163 float val = 0;
164 try {
165 val = std::stof(value);
166 } catch (const std::invalid_argument &e) {
167 logConversionError(e, __func__, "rot", value.c_str());
168 return;
169 } catch (const std::out_of_range &e) {
170 logConversionError(e, __func__, "rot", value.c_str());
171 return;
172 }
173
174 info.rot = val;
175}
176
177void SetTransformSetting(obs_scene_item *source,
178 const TransformSetting &setting,

Callers 1

SetTransformSettingFunction · 0.85

Calls 2

logConversionErrorFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected