USD: error importing texture from empty path.
Added check for empty path before attempting to import textures.
This commit is contained in:
@@ -465,7 +465,7 @@ static PyObject *get_shader_source_data(const USDImportParams ¶ms,
|
||||
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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user