mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
new texture methods
This commit is contained in:
parent
ee32368ea6
commit
a451db4f3a
@ -521,15 +521,15 @@ recurse_nodes(Node *node, ArcChain &chain, EggGroupNode *egg_parent) {
|
|||||||
void BamToEgg::
|
void BamToEgg::
|
||||||
apply_texture(EggPrimitive *egg_prim, Texture *tex) {
|
apply_texture(EggPrimitive *egg_prim, Texture *tex) {
|
||||||
if (tex != (Texture *)NULL) {
|
if (tex != (Texture *)NULL) {
|
||||||
if (tex->has_name()) {
|
if (tex->has_filename()) {
|
||||||
Filename filename = SomethingToEggConverter::convert_path
|
Filename filename = SomethingToEggConverter::convert_path
|
||||||
(tex->get_name(), get_texture_path(), _make_rel_dir,
|
(tex->get_filename(), get_texture_path(), _make_rel_dir,
|
||||||
_texture_path_convert);
|
_texture_path_convert);
|
||||||
|
|
||||||
EggTexture temp("", filename);
|
EggTexture temp("", filename);
|
||||||
if (tex->has_alpha_name()) {
|
if (tex->has_alpha_filename()) {
|
||||||
Filename alpha = SomethingToEggConverter::convert_path
|
Filename alpha = SomethingToEggConverter::convert_path
|
||||||
(tex->get_alpha_name(), get_texture_path(), _make_rel_dir,
|
(tex->get_alpha_filename(), get_texture_path(), _make_rel_dir,
|
||||||
_texture_path_convert);
|
_texture_path_convert);
|
||||||
temp.set_alpha_file(alpha);
|
temp.set_alpha_file(alpha);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user