Skip to content

J3MLoader silently treats "true" as false when parsing booleans #880

@stephengold

Description

@stephengold

If a J3M or J3MD asset contains "Transparent true", the parser will setTransparent(false) since J3MLoader.parseBoolean() treats any word other than "On" as false.

Similarly for "Wireframe true" or "DepthWrite on" or "DepthTest yes".

It would be nice if parseBoolean() generated a diagnostic for words other than "On" or "Off".

Metadata

Metadata

Assignees

Labels

defectSomething that is supposed to work, but doesn't. Less severe than a "bug"

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions