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

Overlay disappeared after returning to tool #1435

Open
jlampel opened this issue Jan 28, 2025 · 2 comments
Open

Overlay disappeared after returning to tool #1435

jlampel opened this issue Jan 28, 2025 · 2 comments
Assignees
Labels
bug can't replicate v4 Applies to RF version 4x
Milestone

Comments

@jlampel
Copy link
Member

jlampel commented Jan 28, 2025

I'm not entirely sure what happened here, but I used RetopoFlow in a file and then spent some time doing other tasks in object mode like working with modifiers, rendering, compositing, lighting, and shading. When I came back to RetopoFlow, the tools overlays did not display (such as the preview in PolyPen or the brush in Tweak) and I saw the following error in the console:

AttributeError: 'NoneType' object has no attribute 'spaces'
Traceback (most recent call last):
  File "C:\Users\Jonathan\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\retopoflow\retopoflow\rfoverlays\loopstrip_selection_overlay.py", line 80, in draw_postpixel_overlay
    is_done = (self.RFCore.selected_RFTool_idname != rftool_idname)

  File "C:\Program Files\Blender Foundation\Blender 4.3\4.3\scripts\modules\bpy_types.py", line 936, in __getattribute__
    properties = _StructRNA.path_resolve(self, "properties")

ReferenceError: StructRNA of type RFOperator_Strokes_Selection_Overlay has been removed
Traceback (most recent call last):
  File "C:\Users\Jonathan\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\retopoflow\retopoflow\rfcore.py", line 387, in handle_postpixel
    if len(area.spaces) == 0:

Restarting Blender and opening the same file resolved the issue. I will see if I can find specific steps to trigger this again.

@jlampel jlampel added bug v4 Applies to RF version 4x labels Jan 28, 2025
@jlampel jlampel added this to the v4.0 milestone Jan 28, 2025
@jlampel
Copy link
Member Author

jlampel commented Jan 28, 2025

I found you can trigger a similar error by having a RF tool active in the Modeling workspace (where Edit Mode is the default mode), switching to a different workspace that is in Object Mode, and then switching back. In this scenario though, switching to a different tool and back or toggling Edit Mode will reset the tool and fix the issue.

AttributeError: 'NoneType' object has no attribute 'spaces'
Traceback (most recent call last):
  File "C:\Users\Jonathan\AppData\Roaming\Blender Foundation\Blender\4.3\scripts\addons\retopoflow\retopoflow\rfcore.py", line 304, in handle_draw_cursor
    if len(area.spaces) == 0:

@vxlcoder
Copy link
Contributor

vxlcoder commented Mar 8, 2025

i am not able to replicate this now. it might have been fixed by changes that made loading a .blend file with RF selected, but I'm not sure. can you try replicating this issue again, @jlampel?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug can't replicate v4 Applies to RF version 4x
Projects
None yet
Development

No branches or pull requests

2 participants