Skip to content

Commit e09d28b

Browse files
committed
BitmapSkin: Add a warning for invalid textures
1 parent 9cc4778 commit e09d28b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/bitmapskin.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ BitmapSkin::BitmapSkin(libscratchcpp::Costume *costume) :
3131
m_texture = createAndPaintTexture(m_image.width(), m_image.height(), false);
3232
m_textureSize.setWidth(m_image.width());
3333
m_textureSize.setHeight(m_image.height());
34-
Q_ASSERT(m_texture.isValid());
34+
35+
if (!m_texture.isValid())
36+
qWarning() << "invalid bitmap texture (costume name: " + costume->name() + ")";
3537
}
3638

3739
BitmapSkin::~BitmapSkin()

0 commit comments

Comments
 (0)