Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RetopoFlow object rotation cleared when opening backup file via RetopoFlow menu #1367

Open
kirkjaney opened this issue Dec 9, 2024 · 10 comments
Labels
bug Ready for Testing v3 Applies to RF version 3x

Comments

@kirkjaney
Copy link

Hello Im having an issue with the retopo program and Im having a difficult time trying to figure things out.... Whenever I reopen a file that I worked on from the previous day I noticed retopoflow always flip the source mesh and the new geometry up seperating it from the rest of the model. Is it possible to stop it from doing this every time? I can simply rotate it back down but now Im having a hard time realigning the body suit with the body. I've included a photo for you to better see the issue I'm having. As soon as I open up a saved file in retopoflow it immediately flips the source mesh and new geometry up!
Screenshot 2024-12-08 at 11 46 27 PM

@jfranmatheu
Copy link
Collaborator

Hello @kirkjaney , thanks for the report.
Can you send a .blend file where this happens to [email protected] with the issue number in the subject, so we can analyze it?

@jlampel
Copy link
Member

jlampel commented Dec 10, 2024

I have not yet been able to replicate this issue with the file, whether saving while RetopoFlow is running or after exiting, but I did notice that the 'Extract3' mesh has two loose verts far above the head, which is very likely to cause some weirdness. It would also be worth applying scale and rotation. Does doing those three things fix the problem?

@kirkjaney
Copy link
Author

kirkjaney commented Dec 11, 2024 via email

@jlampel
Copy link
Member

jlampel commented Dec 11, 2024

Oh, I see! This only happens when opening the file via the RetopoFlow menu and not Blender's File menu.

@jfranmatheu If I rename this file to retopoflow_backup.blend and place it in my Users folder (I'm on Windows, and that's where RF keeps the backups.... which is probably worth revisiting as well), it loads the file just fine if opened normally in Blender but with the RetopoFlow object's rotation cleared if opened via the RetopoFlow menu. Could you investigate further when you have a chance?

@jlampel jlampel added v3 Applies to RF version 3x and removed need more info labels Dec 11, 2024
@jfranmatheu
Copy link
Collaborator

Thanks for the hint on the backup file location @jlampel I will take a look at it as soon as possible

@jlampel jlampel changed the title Issues opening saved files RetopoFlow object rotation cleared when opening backup file via RetopoFlow menu Dec 12, 2024
@kirkjaney
Copy link
Author

kirkjaney commented Dec 12, 2024 via email

@jfranmatheu
Copy link
Collaborator

@jlampel I've checked it. What I've seen is that if you normally open that file and then click on 'finish auto save recovery' in the RF menu, it will toggle on the visibility of the RF low-poly mesh but rotated (when originally it wasn't)

@jfranmatheu
Copy link
Collaborator

@jlampel

More interestingly, in the RF docs, is stated this

## Auto Save / Save: Finish Auto Save Recovery

If you directly open an auto saved file, some of the visual settings and mesh sizes will be different.
Clicking the "Finish Auto Save Recovery" button will recover the original visual settings and mesh sizes.

So, the "Finish Auto Save Recovery" button should recover the original visual settings and mesh sizes but it is also touching the transform settings far from the original settings.

Looks like the internal function that is changing the transform via transformation matrix is RetopoFlow_Blender_Save.recovery_revert, it is not only being called when explicitly clicking the "Finish Auto Save Recovery" button, but also occurs in a load_post handler called after opening a recovery file, so both options drive me to the same place.

@jfranmatheu
Copy link
Collaborator

jfranmatheu commented Dec 12, 2024

@kirkjaney Can you try this RF build and tell me if it works for you and preserves the rotation? (attached)

RetopoFlow_v3.4.4.zip

@jlampel
Copy link
Member

jlampel commented Dec 13, 2024

I wonder why rotation is touched by RetopoFlow here when, as far as I know, we're only scaling the objects. It makes sense that, in the event of a crash, some might be the wrong scale and the recover auto-save would correct for that. @vxlcoder can correct me if I'm wrong, but I can't find where rotation is involved at all in entering or exiting RetopoFlow mode (besides new targets being rotated to align with the active object if that's chosen), so I think we can safely leave that alone during recovery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Ready for Testing v3 Applies to RF version 3x
Projects
None yet
Development

No branches or pull requests

3 participants