jMonkeyEngine / jMonkeyEngine/sdk

Trying to change a texture in a Material when the reference is missing causes an exception.

Open Beginner friendly
#711 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Material / Material Editor
Dominant language
Java
Stars
348
Forks
104
Avg merge
4d 13h
Merged PRs (30d)
3

Description

com.jme3.asset.AssetNotFoundException: Textures/the_missing_texture.png (Flipped) (Mipmapped)
	at com.jme3.asset.DesktopAssetManager.loadAsset(DesktopAssetManager.java:387)
	at com.jme3.asset.DesktopAssetManager.loadTexture(DesktopAssetManager.java:409)
	at com.jme3.asset.DesktopAssetManager.loadTexture(DesktopAssetManager.java:421)
	at com.jme3.gde.core.properties.TexturePropertyEditor.getValue(TexturePropertyEditor.java:89)

This can for example happen if you copy materials from one project to another.

Expected behavior: Ignore the missing texture and show the selector.

Work around: Use the 'source' window and edit it manually.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in com.jme3.gde.core.properties.TexturePropertyEditor.java at getValue (line 89), following the asset-loading stack shown in the report. Reproduce the case by changing a material whose texture reference is missing. Done means the missing texture is ignored and the selector is displayed instead of an exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
76/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.