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

「 頂点が選択されていないパーツを隠す」機能:パーツを隠したあと選択状態が解除される #35

Open
nikogoli opened this issue Mar 11, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@nikogoli
Copy link
Owner

機能の場所

編集モード > メッシュ > 表示/隠す > 頂点が選択されていないパーツを隠す

問題

機能を実行後、「非選択部分が隠す」ことは成功するが、もとの選択部分の選択状態が解除される

エラーメッセージ

エラー: Python: Traceback (most recent call last):
  File "C: ... \Scramble Addon\VIEW3D_MT_edit_mesh_showhide.py", line 104, in execute
    vert.select = isSelecteds[idx]
TypeError: Python number not a bool (0/1)
@nikogoli
Copy link
Owner Author

原因

処理:Hide を実行するために選択状態を反転させたあと、元の選択場所を再選択する
→ bool を与えるべきところで int を使っているので、再選択に失敗する

対処

bool に変更

@nikogoli nikogoli added the bug Something isn't working label Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant