mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
even friendlier
This commit is contained in:
parent
45b5c4a9bf
commit
4dcddc5bd3
@ -313,9 +313,11 @@ update_egg() {
|
|||||||
if (_placement->get_omit_reason() == OR_unknown) {
|
if (_placement->get_omit_reason() == OR_unknown) {
|
||||||
// The texture doesn't even exist. We can't update the egg to
|
// The texture doesn't even exist. We can't update the egg to
|
||||||
// point to any meaningful path; just leave it pointing to the
|
// point to any meaningful path; just leave it pointing to the
|
||||||
// source texture. Maybe it will be found along the texture path
|
// source texture's basename. Maybe it will be found along the
|
||||||
// later.
|
// texture path later.
|
||||||
|
Filename orig_filename = _egg_tex->get_filename();
|
||||||
texture->update_egg_tex(_egg_tex);
|
texture->update_egg_tex(_egg_tex);
|
||||||
|
_egg_tex->set_filename(orig_filename.get_basename());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (_placement->get_omit_reason() != OR_none) {
|
if (_placement->get_omit_reason() != OR_none) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user