We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cc4778 commit e09d28bCopy full SHA for e09d28b
src/bitmapskin.cpp
@@ -31,7 +31,9 @@ BitmapSkin::BitmapSkin(libscratchcpp::Costume *costume) :
31
m_texture = createAndPaintTexture(m_image.width(), m_image.height(), false);
32
m_textureSize.setWidth(m_image.width());
33
m_textureSize.setHeight(m_image.height());
34
- Q_ASSERT(m_texture.isValid());
+
35
+ if (!m_texture.isValid())
36
+ qWarning() << "invalid bitmap texture (costume name: " + costume->name() + ")";
37
}
38
39
BitmapSkin::~BitmapSkin()
0 commit comments