Skip to content

Quick Fix: Cannot upload Model3D image after clearing it#2168

Merged
dawoodkhan82 merged 1 commit into
mainfrom
dawood/model3d-clear-fix
Sep 2, 2022
Merged

Quick Fix: Cannot upload Model3D image after clearing it#2168
dawoodkhan82 merged 1 commit into
mainfrom
dawood/model3d-clear-fix

Conversation

@dawoodkhan82
Copy link
Copy Markdown
Collaborator

@dawoodkhan82 dawoodkhan82 commented Sep 2, 2022

Description

Quick fix for when the "X" button is pressed on the model3D upload interface, another 3d image would not upload.

Screen.Recording.2022-09-02.at.3.58.44.PM.mov

Please include:

  • relevant motivation
  • a summary of the change
  • which issue is fixed.
  • any additional dependencies that are required for this change.

Closes: # (issue)
#2148

Checklist:

  • I have performed a self-review of my own code
  • My code follows the style guidelines of this project
  • I have commented my code in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@dawoodkhan82 dawoodkhan82 linked an issue Sep 2, 2022 that may be closed by this pull request
1 task
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Sep 2, 2022

All the demos for this PR have been deployed at https://huggingface.co/spaces/gradio-pr-deploys/pr-2168-all-demos

Copy link
Copy Markdown
Collaborator

@freddyaboulton freddyaboulton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dawoodkhan82 !


function addNewModel() {
if (scene && engine) {
if (scene && !scene.isDisposed && engine) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Definitely works for me on the model3D demo!

@dawoodkhan82 dawoodkhan82 merged commit 090622c into main Sep 2, 2022
@dawoodkhan82 dawoodkhan82 deleted the dawood/model3d-clear-fix branch September 2, 2022 20:18
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.

Cannot upload Model3D image after clearing it

2 participants