| 159 | } |
| 160 | |
| 161 | static 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 | |
| 177 | void SetTransformSetting(obs_scene_item *source, |
| 178 | const TransformSetting &setting, |
no test coverage detected