summaryrefslogtreecommitdiff
path: root/model.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'model.cpp')
-rw-r--r--model.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/model.cpp b/model.cpp
index cb9c23e..6aba19e 100644
--- a/model.cpp
+++ b/model.cpp
@@ -308,6 +308,7 @@ void Model_Instance::update() {
);
bound.encompass(bounds[i]);
}
+ centre = bound.min + bound.max * 0.5f;
}
void Model_Instance::update_cbuffers(Device* dev) {