mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
eliminate empty path names
This commit is contained in:
parent
b4252e39a6
commit
484f442fad
@ -68,7 +68,9 @@ reload_search_path() {
|
||||
for (int i = 0; i < num_unique_references; i++) {
|
||||
string dirname = _core->get_unique_reference(i)->get_string_value();
|
||||
string expanded = ExecutionEnvironment::expand_string(dirname);
|
||||
_value.append_directory(Filename::from_os_specific(expanded));
|
||||
if (!expanded.empty()) {
|
||||
_value.append_directory(Filename::from_os_specific(expanded));
|
||||
}
|
||||
}
|
||||
_value.append_path(_postfix);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user