mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-14 21:36:44 +00:00
fix texture brush index search
This commit is contained in:
parent
4b48e62b64
commit
09ee2a0a36
1 changed files with 2 additions and 2 deletions
|
@ -179,10 +179,10 @@ void CSVWidget::TextureBrushWindow::setBrushTexture(std::string brushTexture)
|
||||||
undoStack.endMacro();
|
undoStack.endMacro();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (index != -1 && !landtexturesCollection.getRecord(index).isDeleted())
|
if (index != -1 && !landtexturesCollection.getRecord(rowInNew).isDeleted())
|
||||||
{
|
{
|
||||||
mBrushTextureLabel = "Selected texture: " + newBrushTextureId + " ";
|
mBrushTextureLabel = "Selected texture: " + newBrushTextureId + " ";
|
||||||
mSelectedBrush->setText(QString::fromStdString(mBrushTextureLabel) + landtexturesCollection.getData(index, landTextureFilename).value<QString>());
|
mSelectedBrush->setText(QString::fromStdString(mBrushTextureLabel) + landtexturesCollection.getData(rowInNew, landTextureFilename).value<QString>());
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
newBrushTextureId = "";
|
newBrushTextureId = "";
|
||||||
|
|
Loading…
Reference in a new issue