aachman98 / aachman98/Sorcar

[BUG] Creating nodegroups results in context error

未關閉
#142 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug ux
主要語言
Python
星號
1.2k
分支
112
PR 合併指標
30 天內沒有已合併 PR

描述

**Describe the bug**
When multiple node editors are open in the layout (even shader), context error for `bpy.ops.node.clipboard_copy()` is shown (poll failed).

**To Reproduce**
Steps to reproduce the behavior:
1. Create a simple Sorcar nodetree
2. Drag out node editor layouts in the same window
3. Select some nodes
4. Group the nodes by pressing Ctrl+G (or using the N-Panel operator)

**Expected behavior**
Group is created in the node tree currently active (mouse focus)

**Screenshots**
![Screenshot from 2020-06-01 21-13-30](https://user-images.githubusercontent.com/26548023/83426466-cb176800-a44c-11ea-8575-8ee55f612443.png)

**Desktop (please complete the following information):**
- OS: Manjaro Linux
- Blender Version: 2.82a
- Sorcar Version: cda1255f06b836ed1f8cbcef5a9d625c58494fba (dev)

**Additional context**
Use `context.space_data.edit_tree` instead of `context.space_data.node_tree`

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。