This commit is contained in:
2024-12-07 18:32:50 -06:00
parent d1d7d46826
commit ccd5b36965
15 changed files with 300 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ void MeshComponent::buffer() {
}
void MeshComponent::invalidate() {
if(valid) return;
if(!valid) return;
valid = false;
events.push_back(getScene()->onNextFrame.listen([this]() {
this->buffer();

View File

@@ -10,7 +10,7 @@
namespace Dawn {
class MeshComponent : public SceneComponent {
private:
bool_t valid = true;
bool_t valid = false;
/**
* Buffers the mesh.