UI: Add visibility transitions
This also modifies libobs. This adds the ability for scene items to have transitions when their visibility is toggled.
This commit is contained in:
parent
011adc4e29
commit
32e7ba1abe
9 changed files with 563 additions and 14 deletions
|
|
@ -408,11 +408,11 @@ void OBSBasicProperties::DrawTransitionPreview(void *data, uint32_t cx,
|
|||
{
|
||||
OBSBasicProperties *window = static_cast<OBSBasicProperties *>(data);
|
||||
|
||||
if (!window->source)
|
||||
if (!window->sourceClone)
|
||||
return;
|
||||
|
||||
uint32_t sourceCX = max(obs_source_get_width(window->source), 1u);
|
||||
uint32_t sourceCY = max(obs_source_get_height(window->source), 1u);
|
||||
uint32_t sourceCX = max(obs_source_get_width(window->sourceClone), 1u);
|
||||
uint32_t sourceCY = max(obs_source_get_height(window->sourceClone), 1u);
|
||||
|
||||
int x, y;
|
||||
int newCX, newCY;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue