mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
generate normals when needed
This commit is contained in:
parent
2fde94041e
commit
fedbdb47cb
@ -119,6 +119,10 @@ load_file(const Filename &path, bool) const {
|
|||||||
egg_data.transform(LMatrix4d::scale_mat(scale));
|
egg_data.transform(LMatrix4d::scale_mat(scale));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!egg_data.has_normals()) {
|
||||||
|
egg_data.recompute_polygon_normals();
|
||||||
|
}
|
||||||
|
|
||||||
result = load_egg_data(egg_data);
|
result = load_egg_data(egg_data);
|
||||||
}
|
}
|
||||||
_converter->clear_egg_data();
|
_converter->clear_egg_data();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user