aachman98 / aachman98/Sorcar

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

未关闭
#184 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
1.2k
派生
112
PR 合并指标
30 天内没有已合并 PR

描述

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
`

贡献指南

这个仓库没有索引到贡献指南

调研方向

崩溃发生在 ScNodeTree.py 第 74 行和 helper.py 第 42 行,即在执行 'Select Linked Faces by Angle' node 后 unregister 对象时。先检查 Sorcar addon 中该 node 的实现,可能在 nodes 或 operators 下。按照给定步骤在 Blender 中复现错误,然后追踪为什么 Mesh struct 被过早移除。检查 node 之间的对象生命周期和数据处理。

由索引模型根据 Issue 内容生成。

评估

技术栈
blender
领域
computer-graphics, desktop
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。