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

Function setItemTL

plugins/base/macro-action-scene-transform.cpp:74–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74static void setItemTL(obs_sceneitem_t *item, const vec3 &tl)
75{
76 vec3 newTL;
77 vec2 pos;
78
79 obs_sceneitem_get_pos(item, &pos);
80 newTL = getItemTL(item);
81 pos.x += tl.x - newTL.x;
82 pos.y += tl.y - newTL.y;
83 obs_sceneitem_set_pos(item, &pos);
84}
85
86static void reset(obs_sceneitem_t *item)
87{

Callers 3

rotateFunction · 0.85
flipFunction · 0.85
centerFunction · 0.85

Calls 1

getItemTLFunction · 0.85

Tested by

no test coverage detected