mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Adds isSRGB and invertSmoothness checkboxes to terrain material editor
Added ability for assimp loader to ignore cached DTS shapes on demand when building shape data Added assimp importer options to asset import config settings set Moved variableInspector field types folder from tools/assetBrowser/scripts to tools/guis
This commit is contained in:
parent
d8cc73f5a1
commit
796a95b8a5
14 changed files with 125 additions and 22 deletions
|
|
@ -799,7 +799,7 @@ TSShape* assimpLoadShape(const Torque::Path &path)
|
|||
return tss;
|
||||
}
|
||||
|
||||
DefineEngineFunction(GetShapeInfo, bool, (const char* shapePath, const char* ctrl), ,
|
||||
DefineEngineFunction(GetShapeInfo, bool, (const char* shapePath, const char* ctrl, bool loadCachedDts), ("", "", true),
|
||||
"(string shapePath, GuiTreeViewCtrl ctrl) Collect scene information from "
|
||||
"a shape file and store it in a GuiTreeView control. This function is "
|
||||
"used by the assimp import gui to show a preview of the scene contents "
|
||||
|
|
@ -820,7 +820,7 @@ DefineEngineFunction(GetShapeInfo, bool, (const char* shapePath, const char* ctr
|
|||
// Check if a cached DTS is available => no need to import the source file
|
||||
// if we can load the DTS instead
|
||||
Torque::Path path(shapePath);
|
||||
if (AssimpShapeLoader::canLoadCachedDTS(path))
|
||||
if (loadCachedDts && AssimpShapeLoader::canLoadCachedDTS(path))
|
||||
return false;
|
||||
|
||||
AssimpShapeLoader loader;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue