Skip to content

Commit

Permalink
fix: set layer_depth on draw_frame properly #1592
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Jan 14, 2025
1 parent abcae38 commit 895a5a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/frame/draw_frame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ draw_frame::draw_frame(mutable_frame&& frame)
{
}
draw_frame::draw_frame(std::vector<draw_frame> frames)
: impl_(new impl(std::move(frames)))
{
auto frame_size = frames.size();
impl_ = std::make_unique<impl>(std::move(frames));
if (frame_size > 1) impl_->transform_.image_transform.layer_depth = 1;
}
draw_frame::~draw_frame() {}
draw_frame& draw_frame::operator=(draw_frame other)
Expand Down

0 comments on commit 895a5a0

Please sign in to comment.