mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
Fix loading of older OBJ8 CSL modelsets
- Fix support for older modelsets not using the texture for OBJ8 feature - Small error when xsb_aircraft.txt was outside the object folder ref T326
This commit is contained in:
committed by
Klaus Basan
parent
00abf48047
commit
d682df243a
@@ -481,8 +481,6 @@ namespace BlackMisc
|
|||||||
}
|
}
|
||||||
|
|
||||||
package.planes.push_back(CSLPlane());
|
package.planes.push_back(CSLPlane());
|
||||||
// Package name and object name uniquely identify an OBJ8 aircraft.
|
|
||||||
// File path just points to the package root.
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -521,6 +519,8 @@ namespace BlackMisc
|
|||||||
if (tokens.size() >= 5)
|
if (tokens.size() >= 5)
|
||||||
{
|
{
|
||||||
// Load regular texture
|
// Load regular texture
|
||||||
|
// Replace package root dir again back to package name
|
||||||
|
dirNames.replace(0, package.name);
|
||||||
QString relativeTexPath = dirNames.join('/') + '/' + tokens[4];
|
QString relativeTexPath = dirNames.join('/') + '/' + tokens[4];
|
||||||
normalizePath(relativeTexPath);
|
normalizePath(relativeTexPath);
|
||||||
QString absoluteTexPath(relativeTexPath);
|
QString absoluteTexPath(relativeTexPath);
|
||||||
|
|||||||
Submodule src/xswiftbus/libxplanemp updated: ef11f55adc...9daa1a1c12
Reference in New Issue
Block a user