mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
guard against nullptr deferenece
This commit is contained in:
parent
5cd047da15
commit
09f14bc9a5
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ void RenderableModelEntityItem::update(const quint64& now) {
|
|||
Q_ARG(EntityItemProperties, properties));
|
||||
}
|
||||
|
||||
if (!_model || _needsModelReload) {
|
||||
if (_myRenderer && (!_model || _needsModelReload)) {
|
||||
// TODO: this getModel() appears to be about 3% of model render time. We should optimize
|
||||
PerformanceTimer perfTimer("getModel");
|
||||
getModel(_myRenderer);
|
||||
|
|
Loading…
Reference in a new issue