Skip to content

Commit b6b8bcf

Browse files
committed
synced with engine
1 parent 11af3a3 commit b6b8bcf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/editor/plugins.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ struct ModelWriter {
117117
}
118118

119119
const cgltf_material* material = import_mesh.primitives[0].material;
120-
StaticString<LUMIX_MAX_PATH + 128> mat_id(dir, material->name, ".mat");
120+
StaticString<MAX_PATH + 128> mat_id(dir, material->name, ".mat");
121121
const i32 len = stringLength(mat_id.data);
122122
write(len);
123123
write(mat_id.data, len);
@@ -342,7 +342,7 @@ struct ModelWriter {
342342
}
343343

344344
IAllocator& allocator;
345-
StaticString<LUMIX_MAX_PATH> src;
345+
StaticString<MAX_PATH> src;
346346
OutputMemoryStream out;
347347
};
348348

@@ -470,7 +470,7 @@ struct CompilerPlugin : AssetCompiler::IPlugin {
470470
// TODO other textures
471471
}
472472

473-
StaticString<LUMIX_MAX_PATH> out_path(fs.getBasePath(), dir, mat.name, ".mat");
473+
StaticString<MAX_PATH> out_path(fs.getBasePath(), dir, mat.name, ".mat");
474474
os::OutputFile file;
475475
if(!file.open(out_path)) {
476476
logError("Could not create ", out_path);
@@ -511,7 +511,7 @@ struct CompilerPlugin : AssetCompiler::IPlugin {
511511
StringView dir = Path::getDir(src);
512512
for (u32 i = 0; i < gltf_data->buffers_count; ++i) {
513513
const char* uri = gltf_data->buffers[i].uri;
514-
const StaticString<LUMIX_MAX_PATH> path(dir, uri);
514+
const StaticString<MAX_PATH> path(dir, uri);
515515
if (!fs.getContentSync(Path(path), buffers[i])) {
516516
logError("Could not load ", uri);
517517
cgltf_free(gltf_data);

0 commit comments

Comments
 (0)