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