diff --git a/libobs/obs-scene.c b/libobs/obs-scene.c index 0170da0cc..1010e2e77 100644 --- a/libobs/obs-scene.c +++ b/libobs/obs-scene.c @@ -323,6 +323,9 @@ static void update_item_transform(struct obs_scene_item *item) if (os_atomic_load_long(&item->defer_update) > 0) return; + item->last_width = width; + item->last_height = height; + width = cx; height = cy; @@ -375,9 +378,6 @@ static void update_item_transform(struct obs_scene_item *item) /* ----------------------- */ - item->last_width = width; - item->last_height = height; - calldata_init_fixed(¶ms, stack, sizeof(stack)); calldata_set_ptr(¶ms, "scene", item->parent); calldata_set_ptr(¶ms, "item", item);