Page MenuHome

"saved as a copy" confuses Blender when loading scenes
Closed, ResolvedPublic

Description

System Information
Win x64 10

Blender Version (same with release 2.79b)
2.79 dca3d3ef0ef

When I load the attached scene , Blender does not show the scene file name at the top, when I try to save the file while it is open, it tries to save over a previously opened/saved file, not the one that is currently open. These files are saved temporarily as "copies" using the py line below

bpy.ops.wm.save_as_mainfile(path, copy=True)

It is by accident that I found about this behavior, not intentional really.

I am not sure if this is an intentional behavior but to me it does not make sense that Blender would care if a file was saved as a copy or or not after a complete restart.

  • Make a new scene with simple suzanne
  • Save it as a copy from the file menu
  • Close Blender
  • Open Blender
  • Open the scene you just saved as copy
  • Check the title line, no name there as if the scene is nameless
  • Press Ctrl-S to save it again
  • Observe where and how it tries to save it. It normally should save it over the currently opened scene but it does not, it either asks for a name (since it is missing a name), or tries to save ver the previously opened file.

thanks

Event Timeline

kursad k (kursadk) updated the task description. (Show Details)
kursad k (kursadk) added a comment.EditedNov 21 2018, 11:55 PM

I actually just tested this with regular "Save Copy" from the file menu, there is the exact same issue. So this does not seem to be anything about the Python call, might be either a design thing or an issue that was overlooked all this time, I cant be sure.

In my opinion saving a copy means you save it with a different name so you do not change the current file name, but that should not interfere with how a file should behave next time it is opened. Quite a curious situation.

kursad k (kursadk) updated the task description. (Show Details)EditedNov 22 2018, 3:26 AM

I just added repeat steps to the original entry.

kursad k (kursadk) updated the task description. (Show Details)
kursad k (kursadk) added a comment.EditedNov 22 2018, 5:53 AM

@Campbell Barton (campbellbarton) thanks for the speedy fix. Had this bug(or a feature) been recent introduction or been there for quite some time?