-
Notifications
You must be signed in to change notification settings - Fork 15
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
Wrong indexes fix #20
base: numba
Are you sure you want to change the base?
Conversation
If I use the numba_crash.blend file I sent you it still crashes for me. No matter which combination of settings (dual/quad) I choose.
Does this happen for you, too, or did I make some mistake? |
Blender 2.81.16 |
I have an object that is quads only, but it also crashes in dual mode. |
This scene works on my computer, are numba and numpy version the same as mine? |
Oh, I knew I did something wrong! I forgot there was a hidden plane in my scene. I wonder if this could be detected automatically without impacting performance too much... |
Tried it out, works for me! |
Fixes #18
This bug was caused because in some lines like:
tensionmap/tensionmap.py
Lines 186 to 189 in c63fc1b
code was creating arrays that would fit only if model is build from quads. This pull request adds new menu under tm_panel called 'Mesh type'. It allows user to select 'Quads only' in case model is build from quad polygons, 'Triangles only' for meshes build from triangles, and 'Mixed' for all other cases. If 'Mixed' is selected script will use part of code from original addon to handle changing vertex colors, and due to that gives worse performance.