Skip to content

Commit cd8f019

Browse files
committed
SpriteModel: Use sprite position in boundingRect()
1 parent 281547e commit cd8f019

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spritemodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void SpriteModel::onGraphicsEffectsCleared()
9393

9494
libscratchcpp::Rect SpriteModel::boundingRect() const
9595
{
96-
return libscratchcpp::Rect();
96+
return libscratchcpp::Rect(m_sprite->x(), m_sprite->y(), m_sprite->x(), m_sprite->y());
9797
}
9898

9999
libscratchcpp::Sprite *SpriteModel::sprite() const

0 commit comments

Comments
 (0)