mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:08:00 +02:00
Merge pull request #270 from daleglass-overte/fix-meshstates-zero
Clear _meshStates after warning, not before.
This commit is contained in:
commit
8e74773525
1 changed files with 2 additions and 1 deletions
|
@ -304,10 +304,11 @@ bool Model::updateGeometry() {
|
||||||
// initJointStates() to fail to make _rig.jointStatesEmpty() false, causing things to end up here twice.
|
// initJointStates() to fail to make _rig.jointStatesEmpty() false, causing things to end up here twice.
|
||||||
//
|
//
|
||||||
// In any case it appears to be safe to simply clear _meshStates here, even though this shouldn't happen.
|
// In any case it appears to be safe to simply clear _meshStates here, even though this shouldn't happen.
|
||||||
_meshStates.clear();
|
|
||||||
qCWarning(renderutils) << "_meshStates has" << _meshStates.size() << "items when it should have none. Model with URL "
|
qCWarning(renderutils) << "_meshStates has" << _meshStates.size() << "items when it should have none. Model with URL "
|
||||||
<< _url.toString() << "; translation" << _translation << "; rotation" << _rotation << "; scale" << _scale
|
<< _url.toString() << "; translation" << _translation << "; rotation" << _rotation << "; scale" << _scale
|
||||||
<< "; joint state count" << _rig.getJointStateCount() << "; type" << (modelProviderType == NestableType::Avatar ? "Avatar" : "Entity");
|
<< "; joint state count" << _rig.getJointStateCount() << "; type" << (modelProviderType == NestableType::Avatar ? "Avatar" : "Entity");
|
||||||
|
_meshStates.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
const HFMModel& hfmModel = getHFMModel();
|
const HFMModel& hfmModel = getHFMModel();
|
||||||
|
|
Loading…
Reference in a new issue