3D Print toolbox, deselection an object still allows to do an export, but the file is broken #97652
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#97652
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1050/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.15
Blender Version
Broken: version: 3.1.2, branch: master, commit date: 2022-03-31 17:40, hash:
blender/blender@cc66d1020c
Worked: (newest version of Blender that worked as expected)
Addon Information
Name: 3D-Print Toolbox ()
Author: Campbell Barton
Short description of error
When an object is not selected, you can still export it to STL, if it was selected before. This results in an empty/broken STL file
Exact steps for others to reproduce the error
Startup blender (with default cube)
Make sure the 3D-Print Toolbox is an active plugin
Select the Cube,
and go to the 3D-Print Toolbox tab. and press the export button.
The STL file ends up in the given location. When you open it in any other program (like 3D Builder) it will be fine.
Then deselect the cube, (by clicking next to the object)
Then go to the 3D-Print Toolbox tab. and press the export button again.
It shows that the same file (cube) is exported again. (also with the same filename)
But if you try to open it is is broken (the file is also only 1kbyte (always)).
This problem happens to me a lot, because if files have some sort of issue (manifolds for instance) the object is not selected the second time I try to export it.
Hope this helps to make this plug in even better then it already is. Because I use it a lot.
Regards,
Jan
Added subscriber: @J.Mosselaar
3D Print toolbox, selection errorto 3D Print toolbox, deselection an object still allows to do an export, but the file is brokenAdded subscribers: @ideasman42, @mano-wii
Changed status from 'Needs Triage' to: 'Confirmed'
Looks like the export.write_mesh() function doesn't check to make sure an object is selected.
Do we fix the function or remove it? Blender can already save STLs with the File>Export dialogue. No functionality would be lost if this button was just removed.
I fixed it on my machine, but I'm not OSS-savy enough to submit a patch.
Update: Patch submitted!
Looks good to me. The problem is still here in the latest version.
This could take a while. I don't know the release schedule for the addon collection.
If it's bothering you, you can find export.py in your Blender installation and insert the lines in my screenshot.
That is not needed, I have a workaround, that prevents me from making this mistake. Thanks for the fix
Please close #105189 and #100232 as well.