1
1

USD: error importing texture from empty path.

Added check for empty path before attempting to import
textures.
This commit is contained in:
2022-12-07 19:59:52 -05:00
parent 48eef11eb0
commit 362d5b42c8

View File

@@ -465,7 +465,7 @@ static PyObject *get_shader_source_data(const USDImportParams &params,
asset_path.GetAssetPath());
}
if (params.import_textures) {
if (params.import_textures && !resolved_path.empty()) {
resolved_path = usd_import_texture(
resolved_path.c_str(), params.import_textures_dir, params.overwrite_textures);
}