mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 04:08:13 +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 RenderableModelEntityItem::avatarJointIndex(int modelJointIndex) {
|
||||||
int result = -1;
|
int result = -1;
|
||||||
int mapSize = (int) _jointMap.size();
|
int mapSize = (int)_jointMap.size();
|
||||||
if (modelJointIndex >= 0 && modelJointIndex < mapSize) {
|
if (modelJointIndex >= 0 && modelJointIndex < mapSize) {
|
||||||
result = _jointMap[modelJointIndex];
|
result = _jointMap[modelJointIndex];
|
||||||
}
|
}
|
||||||
|
|
|
@ -975,7 +975,7 @@ void Model::setPrimitiveMode(PrimitiveMode primitiveMode, const render::ScenePoi
|
||||||
|
|
||||||
render::Transaction transaction;
|
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 itemID = _modelMeshRenderItemIDs[i];
|
||||||
auto meshIndex = _modelMeshRenderItemShapes[i].meshIndex;
|
auto meshIndex = _modelMeshRenderItemShapes[i].meshIndex;
|
||||||
bool invalidatePayloadShapeKey = shouldInvalidatePayloadShapeKey(meshIndex);
|
bool invalidatePayloadShapeKey = shouldInvalidatePayloadShapeKey(meshIndex);
|
||||||
|
|
Loading…
Reference in a new issue