map mat
This commit is contained in:
@@ -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();
|
||||
|
@@ -10,7 +10,7 @@
|
||||
namespace Dawn {
|
||||
class MeshComponent : public SceneComponent {
|
||||
private:
|
||||
bool_t valid = true;
|
||||
bool_t valid = false;
|
||||
|
||||
/**
|
||||
* Buffers the mesh.
|
||||
|
Reference in New Issue
Block a user