aachman98 / aachman98/Sorcar

[BUG] Select Linked Faces by Angle crash when you put a node after

Open
#184 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.2k
Forks
112
PR merge metrics
No merged PRs in 30d

Description

Hello,

**Describe the bug**
Message error when I use the node 'Select Linked Faces by Angle'

**To Reproduce**
Steps to reproduce the behavior:
1. Add : Create Ico Sphere [Value : 2 ; 1.00]
2. Add : Inset [Value : 0.10 ; 0.03 ; Individual ON]
3. Add : Subdivision Surface Modifier [Value : Type Catmull-Clark ; 2]
4. Add : Select Linked Faces by Angle [Value : 1.00]
5. Add : Inset
6. Click on Set preview of the Inset node

**Expected behavior**
A working connection between ' Select Linked Faces by Angle ' and other node ( the output of ' Select Linked Faces by Angle ' was good ).

**Screenshots**
![error_Sorcar](https://user-images.githubusercontent.com/32277675/92488882-66a83980-f1ef-11ea-97d6-2f322ee27f9a.jpg)

**Desktop (please complete the following information):**
- OS: [e.g. Windows]
- Blender Version [e.g. 2.83.5]
- Sorcar Version [e.g. 3.2.0]

**Additional context**
`
Traceback (most recent call last):
File "C:\Users\sbaykal\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Sorcar-master\operators\ScExecuteNode.py", line 19, in execute
curr_tree.execute_node()
File "C:\Users\sbaykal\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Sorcar-master\tree\ScNodeTree.py", line 74, in execute_node
self.unregister_all_objects()
File "C:\Users\sbaykal\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Sorcar-master\tree\ScNodeTree.py", line 35, in unregister_all_objects
remove_object(object)
File "C:\Users\sbaykal\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Sorcar-master\helper.py", line 42, in remove_object
if hasattr(data, "users"):
ReferenceError: StructRNA of type Mesh has been removed

location: :-1
`

Contributor guide

No contributing guide indexed for this repository

Research direction

The crash occurs in ScNodeTree.py line 74 and helper.py line 42 when unregistering objects after executing the 'Select Linked Faces by Angle' node. Start by examining the node's implementation in the Sorcar addon, likely under nodes or operators. Reproduce the error in Blender with the given steps, then trace why the Mesh struct is being removed prematurely. Check the object lifecycle and data handling between nodes.

Written by the indexing model from the issue text.

Assessment

Tech stack
blender
Domain
computer-graphics, desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.