mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 10:38:17 +08:00
Check if the component has been successfully loaded before rendering the component
This commit is contained in:
@ -49,6 +49,9 @@ mixin ComposedComponent on Component, HasGameRef, Tapable {
|
||||
}
|
||||
|
||||
void _renderComponent(Canvas canvas, Component c) {
|
||||
if (!c.loaded()) {
|
||||
return;
|
||||
}
|
||||
c.render(canvas);
|
||||
canvas.restore();
|
||||
canvas.save();
|
||||
|
||||
Reference in New Issue
Block a user