Skip to content

Commit b067032

Browse files
committed
Merge branch 'master' into macos
2 parents 08f1a7c + 532f9ae commit b067032

4 files changed

Lines changed: 131 additions & 51 deletions

File tree

sources/asset-processor/model.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ void processModel()
293293

294294
for (const auto &t : part.textures)
295295
{
296+
CAGE_LOG(SeverityEnum::Info, "assetProcessor", Stringizer() + "looking at texture: " + t.name + ", type: " + meshImportTextureTypeToString(t.type));
296297
const String p = processor->convertAssetPath(t.name);
297298
const uint32 n = HashString(p);
298299
switch (t.type)
@@ -315,7 +316,10 @@ void processModel()
315316
}
316317

317318
if (!part.shaderName.empty())
319+
{
320+
CAGE_LOG(SeverityEnum::Info, "assetProcessor", Stringizer() + "looking at shader: " + part.shaderName);
318321
dsm.shaderName = HashString(processor->convertAssetPath(part.shaderName));
322+
}
319323

320324
dsm.renderFlags = part.renderFlags;
321325
dsm.renderLayer = part.renderLayer;

sources/libcore/assets/assetProcessor.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ namespace cage
7272
if (isPattern(input, inputDirectory, "", ""))
7373
input = subString(input, inputDirectory.length(), m);
7474
if (input.empty())
75-
CAGE_THROW_ERROR(Exception, "input cannot be empty");
75+
CAGE_THROW_ERROR(Exception, "input path cannot be empty");
7676
if (pathIsAbs(input))
7777
{
7878
if (input[0] != '/')
@@ -86,7 +86,7 @@ namespace cage
8686
input = pathJoin(relativeTo, input);
8787
}
8888
if (input.empty())
89-
CAGE_THROW_ERROR(Exception, "input cannot be empty");
89+
CAGE_THROW_ERROR(Exception, "input path cannot be empty");
9090
return input;
9191
}
9292

0 commit comments

Comments
 (0)