mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-11 13:07:42 +00:00
CModel: Mark CModelFlag instances as constexpr where applicable
Allows more runtime initializes to potentially be elided.
This commit is contained in:
@@ -83,7 +83,7 @@ void CGunMotion::Update(float dt, CStateManager& mgr) {
|
||||
}
|
||||
|
||||
void CGunMotion::Draw(const CStateManager& mgr, const zeus::CTransform& xf) const {
|
||||
CModelFlags flags(0, 0, 3, zeus::skWhite);
|
||||
constexpr CModelFlags flags(0, 0, 3, zeus::skWhite);
|
||||
x0_modelData.Render(mgr, xf, nullptr, flags);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user