JannisX11 / blockbench

Blockbench - A low poly 3D model editor
https://www.blockbench.net
GNU General Public License v3.0
3.07k stars 272 forks source link

Sync .bbmodel file name with project name #2164

Closed sorcerykid closed 2 months ago

sorcerykid commented 6 months ago

What are you trying to do, and what do you expect to happen?

I want to open a model using the "Open Model" option from the "File" menu.

What happens instead?

After selecting a model and clicking the "Open" button, it opens a completely different model (in the same directory) than the one I had selected. Most of the time it's the model that was listed before the one I had selected, but other times it seems completely random.

blockbug1

blockbug2

Model format in which the issue occurs

bbmodel

Blockbench variant

Program

Blockbench version

4.9.2

Operating System

Windows 10

Installed Blockbench plugins

No response

sorcerykid commented 6 months ago

I should also mention, that even if I use Explorer (rather than the Open File dialog), it still opens the wrong model in BlockBench. This doesn't happen with any other programs. For example, my Screenshots folder has over 23,405 images, and if I double-click on any one from Explorer, it opens the correct PNG file in IrfanView. So this clearly seems to be an issue specific to BlockBench.

sorcerykid commented 6 months ago

Another quick update, I discovered BlockBench is also SAVING the wrong files. For example, I edited a model called "led_panel2", and went to File and Save. The tab suddenly changed to "led_panel1", meaning it apparently overwrote another file. This means that BlockBench is actually destructive and completely unusable at this point. I would consider this a critical bug.

JannisX11 commented 6 months ago

I would say it is unlikely that it opens the incorrect file. It is more likely that the project name as entered in File > Project does not match the file name of the bbmodel file.

sorcerykid commented 6 months ago

When I go to File > Project it shows "File Name:" and yet filename name shown is not the name of the file I opened at all.

For example, I am editing a model named "led_video.bbmodel". Even though Blockbench shows the File Name as being "led_videopanel_overlay". If in fact File Name actually means Projejct Name then the UX is very unintuitive, and I honestly don't see a reason for there to be two different properties that can so easily become out of sync.

image

sorcerykid commented 5 months ago

I can now confirm that when I open a Blockbench model, then "Save As" a different filename, "File Name" displays the new filename and the tab at the top of the editor changes to the new filename. When I close the model, it's even listed in "Recent" as the new filename. However, once I open that model again from "Recent", the tab magically reverts to the old filename and "File Name" displays the old filename.

blockbench1

blockbench2

blockbench3

blockbench4

blockbench5

blockbench6

I can't understand how such basic functionality that is so obviously broken is labelled as a suggestion rather than a bug. There is no reason for File Name (or the tab at the top of the editor) to show anything other than the filename of the Blockbench model.