mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-25 10:10:52 +00:00
Replace and delete image should be applied to the correct channel now.
This commit is contained in:
parent
0750ca7a4d
commit
fadd8fbf89
2 changed files with 3 additions and 2 deletions
|
@ -728,7 +728,7 @@ void TileEditorMainWindow::onActionDeleteImage( int tabId )
|
||||||
}
|
}
|
||||||
|
|
||||||
TileItemNode *n = reinterpret_cast< TileItemNode* >( idx.internalPointer() );
|
TileItemNode *n = reinterpret_cast< TileItemNode* >( idx.internalPointer() );
|
||||||
n->setTileFilename( TileModel::TileDiffuse, "" );
|
n->setTileFilename( TileItemNode::displayChannel(), "" );
|
||||||
}
|
}
|
||||||
|
|
||||||
void TileEditorMainWindow::onActionReplaceImage( int tabId )
|
void TileEditorMainWindow::onActionReplaceImage( int tabId )
|
||||||
|
@ -752,7 +752,7 @@ void TileEditorMainWindow::onActionReplaceImage( int tabId )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
TileItemNode *n = reinterpret_cast< TileItemNode* >( idx.internalPointer() );
|
TileItemNode *n = reinterpret_cast< TileItemNode* >( idx.internalPointer() );
|
||||||
n->setTileFilename( TileModel::TileDiffuse, fileName );
|
n->setTileFilename( TileItemNode::displayChannel(), fileName );
|
||||||
}
|
}
|
||||||
|
|
||||||
void TileEditorMainWindow::onTileSetRemoved( const QString &set )
|
void TileEditorMainWindow::onTileSetRemoved( const QString &set )
|
||||||
|
|
|
@ -117,6 +117,7 @@ public:
|
||||||
int id() const{ return m_tileId; }
|
int id() const{ return m_tileId; }
|
||||||
|
|
||||||
static void setDisplayChannel( TileModel::TTileChannel channel ){ s_displayChannel = channel; }
|
static void setDisplayChannel( TileModel::TTileChannel channel ){ s_displayChannel = channel; }
|
||||||
|
static TileModel::TTileChannel displayChannel(){ return s_displayChannel; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
int m_tileId;
|
int m_tileId;
|
||||||
|
|
Loading…
Reference in a new issue