3D Printing Toolbox - Local View bug #49895
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#49895
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?
Error with 3D Printing Toolbox CheckAll command when called from Local View mode.
Check is not done.
Duplicate object called ~temp~ is addes to the scene.
Log shows:
To reproduce:
Error appears both in Object mode and Edit mode.
Changed status to: 'Open'
Added subscriber: @EugeneDidkivskyy
Added subscriber: @VukGardasevic
I could not recreate the issue on the latest build 1ee43c5 on Win7 64 bit.
Please, could you provide additional information:
Try the latest developer build and see if the error is still present
What version of the add-on you have and what exact windows OS you're using?
If the error is still present with the latest build, attach a small blend file that demonstrates the issue.
Thanks for you review!
Unfortunately, I can not test it on Win7 64. However, I did test it on different PCs with Win7 32 before.
I've also checked this on blender-2.78-643c5a2-win32 daily build. Same behaviour.
Moreover, I believe this issue to be not new to 2.78a because my tests on 2.77a show the same bug. In contrast, the error is absent on 2.74 and Check All works as it should both for Global and Local views.
It also does not depend on the file and behaves identically on any file including the Start-Up file.
I hope this info helps a little more.
KR,
Eugene
Thanks, I can confirm the issue now.
Seems that the mesh doesn't show up in the scene making the raycast function to fail.
The workaround is to exit the local mode update the scene and go back into the local mode.
I don't know if there is a better way of fixing the issue.
I'll think about it and push a fix.
Thanks Vuk.
I figured that I can do Hide Unselected (Shift+H) to carry some 3D printing tests with the part of the mesh/scene. This way I can stay in Global View and avoid the error.
Still strange that this worked smoothly for earlier Blender versions.
Added subscribers: @mont29, @MikhailRachinskiy
Hi Eugene, I have looked into the problem as I promised and here is what I've found.
The issue is not with the add-on, the code responsible for thickness check (that currently produces the error) hasn't been changed since 2.74:
If we insert
bpy.ops.view3d.localview()
before and afterscene.objects.link(obj_tmp)
there won't be an error.Which means the issue is with
objects.link()
and C API.I also narrowed down the Blender version, the code worked in 2.75, but gives an error in 2.76. So something happened between these two releases.
Unfortunately I'm not a C developer and I cannot handle this issue myself, but maybe @mont29 could look into this?
There is no real bug in Blender here, the issue is with local_view, which (among other things) requires newly linked objects to be put in the lacalview 'layer' to be considered (otherwise it’s ll be hidden, and hence 'invisible' from operators, even if selected).
See 'add object' helper code, and in particular this recent fix: https://developer.blender.org/rB216a3a3826214c665c90b8c89715507e8755b1c7
You probably want to add something like that in your code to link object correctly, even in local view:
base = scene.objects.link(obj_tmp)
v3d = None
if context.space_data and context.space_data.type == 'VIEW_3D':
v3d = context.space_data
if v3d and v3d.local_view:
base.layers_from_view(context.space_data)
@MikhailRachinskiy if you're ok with this I'll push the fix with the code by Bastien,
Have some clean up fixes for Print3d too but i'll do them in a separate patch.
@VukGardasevic I've prepared the fix already, but OK.
@mont29 big thanks for your help with this.
@MikhailRachinskiy No problem I can wait with the clean up patch after your fix.
Changed status from 'Open' to: 'Resolved'
Fixed by
7df41339ae
Hi,
I've tested the
7df41339ae
for 2.78a on Win32. I can confirm this completely solves the issue.Thank you very much for your efforts, gentlemen!
P.S.: The only thing I regret - I didn't post the bug earlier. Thus now I have to work on my habit to avoid local view for 3D printing tests :-)
Have a great weekend!
Eugene