mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-11 14:44:36 +00:00
get image metadata
adds ability to get image metadata without loading the texture since we are using the getOwned parameter correctly now new assets must have the full path to the image file when being created when the asset becomes owned again the image file path will be updated.
This commit is contained in:
parent
db8c565416
commit
bfe2401ebb
5 changed files with 139 additions and 23 deletions
|
|
@ -2824,7 +2824,7 @@ Torque::Path AssetImporter::importImageAsset(AssetImportObject* assetItem)
|
|||
|
||||
StringTableEntry assetName = StringTable->insert(assetItem->assetName.c_str());
|
||||
|
||||
String imageFileName = assetItem->filePath.getFileName() + "." + assetItem->filePath.getExtension();
|
||||
String imageFileName = assetItem->filePath.getFullPath();
|
||||
String assetPath = targetPath + "/" + imageFileName;
|
||||
String tamlPath = targetPath + "/" + assetName + ".asset.taml";
|
||||
String originalPath = assetItem->filePath.getFullPath().c_str();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue