mirror of
https://github.com/overte-org/overte.git
synced 2025-04-07 23:53:54 +02:00
Apply suggestions from code review
Co-authored-by: David Rowe <david@ctrlaltstudio.com>
This commit is contained in:
parent
c510a8fa3e
commit
9a5b956968
2 changed files with 2 additions and 2 deletions
|
@ -704,7 +704,7 @@ void RenderableModelEntityItem::setJointMap(std::vector<int> jointMap) {
|
|||
|
||||
int RenderableModelEntityItem::avatarJointIndex(int modelJointIndex) {
|
||||
int result = -1;
|
||||
int mapSize = (int) _jointMap.size();
|
||||
int mapSize = (int)_jointMap.size();
|
||||
if (modelJointIndex >= 0 && modelJointIndex < mapSize) {
|
||||
result = _jointMap[modelJointIndex];
|
||||
}
|
||||
|
|
|
@ -975,7 +975,7 @@ void Model::setPrimitiveMode(PrimitiveMode primitiveMode, const render::ScenePoi
|
|||
|
||||
render::Transaction transaction;
|
||||
|
||||
for (int i = 0; i < (int) _modelMeshRenderItemIDs.size(); i++) {
|
||||
for (int i = 0; i < (int)_modelMeshRenderItemIDs.size(); i++) {
|
||||
auto itemID = _modelMeshRenderItemIDs[i];
|
||||
auto meshIndex = _modelMeshRenderItemShapes[i].meshIndex;
|
||||
bool invalidatePayloadShapeKey = shouldInvalidatePayloadShapeKey(meshIndex);
|
||||
|
|
Loading…
Reference in a new issue