mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Merge branch 'master' of https://github.com/tmj-fstate/maszyna into milek-dev
This commit is contained in:
@@ -423,7 +423,19 @@ bool TAnimModel::Init(std::string const &asName, std::string const &asReplacable
|
||||
asText = asReplacableTexture.substr( 1, asReplacableTexture.length() - 1 ); // zapamiętanie tekstu
|
||||
}
|
||||
else if( asReplacableTexture != "none" ) {
|
||||
/*
|
||||
auto const texturepath { substr_path( asReplacableTexture ) };
|
||||
if( false == texturepath.empty() ) {
|
||||
Global.asCurrentTexturePath = texturepath;
|
||||
}
|
||||
*/
|
||||
m_materialdata.replacable_skins[ 1 ] = GfxRenderer.Fetch_Material( asReplacableTexture );
|
||||
/*
|
||||
if( false == texturepath.empty() ) {
|
||||
// z powrotem defaultowa sciezka do tekstur
|
||||
Global.asCurrentTexturePath = std::string( szTexturePath );
|
||||
}
|
||||
*/
|
||||
}
|
||||
if( ( m_materialdata.replacable_skins[ 1 ] != null_handle )
|
||||
&& ( GfxRenderer.Material( m_materialdata.replacable_skins[ 1 ] ).has_alpha ) ) {
|
||||
|
||||
Reference in New Issue
Block a user