فهرست منبع

Correct to make the getModuleFromPath function static again.

Areloch 5 سال پیش
والد
کامیت
7818b1ba49
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      Engine/source/T3D/assets/assetImporter.cpp
  2. 1 1
      Engine/source/T3D/assets/assetImporter.h

+ 1 - 1
Engine/source/T3D/assets/assetImporter.cpp

@@ -1850,7 +1850,7 @@ StringTableEntry AssetImporter::autoImportFile(Torque::Path filePath)
    }
 
    //Find out if the filepath has an associated module to it. If we're importing in-place, it needs to be within a module's directory
-   ModuleDefinition* targetModuleDef = getModuleFromPath(filePath);
+   ModuleDefinition* targetModuleDef = AssetImporter::getModuleFromPath(filePath);
 
    if (targetModuleDef == nullptr)
    {

+ 1 - 1
Engine/source/T3D/assets/assetImporter.h

@@ -632,7 +632,7 @@ public:
    /// <para>@param filePath, File path to parse the the module from</para>
    /// <para>@return ModuleDefinition that was found</para>
    /// </summary>
-   ModuleDefinition* getModuleFromPath(Torque::Path filePath);
+   static ModuleDefinition* getModuleFromPath(Torque::Path filePath);
 
    /// <summary>
    /// Parses an asset's name to try and find if any of the import config's suffix lists match to it