EggPolygon setTexture only works for single Textures

Registered by Hypnos

http://www.panda3d.org/apiref.php?page=EggPolygon#setTexture is currently only implemented to support single textures

Blueprint information

Status:
Complete
Approver:
None
Priority:
Low
Drafter:
None
Direction:
Approved
Assignee:
rdb
Definition:
Superseded
Series goal:
Accepted for 1.6.x
Implementation:
Implemented
Milestone target:
milestone icon 1.6.0
Started by
rdb
Completed by
rdb

Related branches

Sprints

Whiteboard

(Hypnos) maybe it's already implemented, got to check addTexture (however the api-reference text, lists it as todo, this should be changed if it's working with addTexture)

getTexture and getNumTextures already work with multitexturing.

(pro-rsoft) The API clearly states that setTexture shouldnt be used for multitexturing but addTexture instead. How else did you think all those egg exporters did multitexturing?

(Hypnos) i didnt think about the egg exporters actually and that they do that already using this interface. but this sentence does confused me a lot: "New code should be written to use the multitexture variants instead." (from apiref) i got to the conclusion that this is actually the "bug".

(pro-rsoft) Hmm, you're right, the comment is just confusing. I've corrected the description to:
"This method is deprecated and is used in support of single-texturing only. Please use the multitexture variant add_texture instead."

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.