Issue Details (XML | Word | Printable)

Key: JAVA3D-657
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: mcneillk
Reporter: mcneillk
Votes: 0
Watchers: 1

If you were logged in you would be able to see more operations.

Text2D should allow for TextureUnitState

Created: 09/Feb/11 05:47 AM   Updated: 01/Mar/11 04:57 AM   Resolved: 01/Mar/11 04:56 AM
Component/s: j3d-core-utils
Affects Version/s: current
Fix Version/s: current

Time Tracking:
Original Estimate: 15 minutes
Original Estimate - 15 minutes
Remaining Estimate: 0 minutes
Remaining Estimate - 0 minutes
Time Spent: 15 minutes
Time Spent - 15 minutes

Participants: mcneillk

 Description  « Hide

Text2D should allow for using a TextureUnitState, instead of a plain texture. Fix is brief and does not affect existing code.

public void setString(String text) {
Texture tex = getAppearance().getTexture();

// permit using a TextureUnitState
if (tex == null) { tex = getAppearance().getTextureUnitState(0).getTexture(); }
// ken
if (getAppearance().getTexture() != null) { getAppearance().setTexture(newTex); } else { getAppearance().getTextureUnitState(0).setTexture(newTex); }

mcneillk added a comment - 01/Mar/11 04:56 AM

Simple fix.