mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 21:40:15 +00:00
Rename cryptic variables.
This commit is contained in:
parent
32ba5bf8b8
commit
f8b43b2a64
@ -36,7 +36,7 @@ namespace CSVRender
|
||||
{
|
||||
if (PathgridTag* tag = dynamic_cast<PathgridTag*>(hit.tag.get()))
|
||||
{
|
||||
unsigned short node = SceneUtil::getPathgridNode(static_cast<unsigned short>(hit.i0));
|
||||
unsigned short node = SceneUtil::getPathgridNode(static_cast<unsigned short>(hit.index0));
|
||||
tag->getPathgrid()->toggleSelected(node);
|
||||
}
|
||||
}
|
||||
@ -54,7 +54,7 @@ namespace CSVRender
|
||||
mLastId = tag->getPathgrid()->getId();
|
||||
}
|
||||
|
||||
unsigned short node = SceneUtil::getPathgridNode(static_cast<unsigned short>(hit.i0));
|
||||
unsigned short node = SceneUtil::getPathgridNode(static_cast<unsigned short>(hit.index0));
|
||||
tag->getPathgrid()->toggleSelected(node);
|
||||
|
||||
return;
|
||||
@ -86,7 +86,7 @@ namespace CSVRender
|
||||
if (PathgridTag* tag = dynamic_cast<PathgridTag*>(hit.tag.get()))
|
||||
{
|
||||
mDragMode = DragMode_Edge;
|
||||
mFromNode = SceneUtil::getPathgridNode(static_cast<unsigned short>(hit.i0));
|
||||
mFromNode = SceneUtil::getPathgridNode(static_cast<unsigned short>(hit.index0));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -501,9 +501,9 @@ CSVRender::WorldspaceHitResult CSVRender::WorldspaceWidget::mousePick (const QPo
|
||||
WorldspaceHitResult hit = { true, tag, 0, 0, 0, intersection.getWorldIntersectPoint() };
|
||||
if (intersection.indexList.size() >= 3)
|
||||
{
|
||||
hit.i0 = intersection.indexList[0];
|
||||
hit.i1 = intersection.indexList[1];
|
||||
hit.i2 = intersection.indexList[2];
|
||||
hit.index0 = intersection.indexList[0];
|
||||
hit.index1 = intersection.indexList[1];
|
||||
hit.index2 = intersection.indexList[2];
|
||||
}
|
||||
return hit;
|
||||
}
|
||||
@ -513,9 +513,9 @@ CSVRender::WorldspaceHitResult CSVRender::WorldspaceWidget::mousePick (const QPo
|
||||
WorldspaceHitResult hit = { true, 0, 0, 0, 0, intersection.getWorldIntersectPoint() };
|
||||
if (intersection.indexList.size() >= 3)
|
||||
{
|
||||
hit.i0 = intersection.indexList[0];
|
||||
hit.i1 = intersection.indexList[1];
|
||||
hit.i2 = intersection.indexList[2];
|
||||
hit.index0 = intersection.indexList[0];
|
||||
hit.index1 = intersection.indexList[1];
|
||||
hit.index2 = intersection.indexList[2];
|
||||
}
|
||||
return hit;
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ namespace CSVRender
|
||||
{
|
||||
bool hit;
|
||||
osg::ref_ptr<TagBase> tag;
|
||||
unsigned int i0, i1, i2;
|
||||
unsigned int index0, index1, index2; // indices of mesh vertices
|
||||
osg::Vec3d worldPos;
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user