FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Make sure the model was loaded before we attempt to remove the mesh by Elettrotecnica · Pull Request #5499 · aframevr/aframe · GitHub

Make sure the model was loaded before we attempt to remove the mesh - #5499

Merged
dmarcos merged 1 commit into
aframevr:masterfrom
Elettrotecnica:warning-obj-model-with-color
Mar 23, 2024
Merged

Make sure the model was loaded before we attempt to remove the mesh#5499
dmarcos merged 1 commit into
aframevr:masterfrom
Elettrotecnica:warning-obj-model-with-color

Conversation

Copy link
Copy Markdown
Contributor

Fixes #4139

I stumbled on this by having a look at a-painter to see how much it would take to have it running on latest aframe. The same warning would appear and seems the two lines at https://github.com/aframevr/a-painter/blob/0deba1f3314ee4cd053bf2a2ae2854994014dd65/index.html#L50-L51 are responsible.

This seems the same situation as per the example reported in #4139 (comment).

I basically moved the check for the model being present from the remove() to the resetMesh method.

All the best

dmarcos commented Mar 23, 2024

Copy link
Copy Markdown
Member

Thanks so much

dmarcos merged commit ede20ae into aframevr:master Mar 23, 2024
Elettrotecnica added a commit to Elettrotecnica/a-painter that referenced this pull request Mar 24, 2024
Elettrotecnica added a commit to Elettrotecnica/a-painter that referenced this pull request Mar 24, 2024
Elettrotecnica added a commit to Elettrotecnica/a-painter that referenced this pull request Mar 24, 2024
Elettrotecnica added a commit to Elettrotecnica/a-painter that referenced this pull request Mar 25, 2024

wyzwon commented Apr 19, 2024

Copy link
Copy Markdown

I appreciate you taking the time to fix this!

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

core:a-entity:warn Tried to remove Object3D of type: mesh which was not defined.

3 participants


Back | FazBrowse Home | New Git URL