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

"Unassigned polygons have been selected" not selecting anything: I have the code fix! #284

Closed
opusGlass opened this issue Nov 12, 2018 · 1 comment
Labels
Bug Issue with specific functionality not working as intended but overall plugin is working. Error Failure scenario resulting in an error message that should not be seen but operation completes fully Usability Improvement/impact to make the plugin easier to use

Comments

@opusGlass
Copy link

Issue Overview

The error code "Some polygons of <...> not assigned to any body part. The unassigned polygons have been selected in the mesh so they can easily be identified." frequently appears, but never selects any polygons.

Version Information

Blender Nif Plugin Version Info

2.6.0dev4

Blender Version Info

2.78

Platform information

Windows 10

Expected Result

Polygons that are not assigned to a body part should be selected automatically so the user can correct them.

Actual Result

No polygons are selected after receiving this error message.

Possible Fix

Line 1048 of "objectsys/object_export.py" needs to be moved down below line 1052.

Before (starting at line 1046):

                # select bad polygons
                # switch to edit mode to select polygons
                bpy.ops.object.mode_set(mode='EDIT',toggle=False)
                for face in b_mesh.polygons:
                    face.select = False
                for face in polygons_without_bodypart:
                    face.select = True

After:

                # select bad polygons
                for face in b_mesh.polygons:
                    face.select = False
                for face in polygons_without_bodypart:
                    face.select = True
                # switch to edit mode to select polygons
                bpy.ops.object.mode_set(mode='EDIT',toggle=False)

Console Output

image

@opusGlass
Copy link
Author

A blend file to use for testing:
blooddraugr_08_testing.zip

It's ready for export, other than some unassigned polygons. Try exporting it to nif (choose Skyrim, enable Flatten Skin, and set Max Partition Bones to 60). Then, it will show the error and automatically switch to edit mode. But, no faces will be selected. If you make my fix to object_export.py it will then select the problematic polygons after export.

@neomonkeus neomonkeus added Bug Issue with specific functionality not working as intended but overall plugin is working. Error Failure scenario resulting in an error message that should not be seen but operation completes fully Usability Improvement/impact to make the plugin easier to use labels Sep 21, 2019
@neomonkeus neomonkeus added this to the v2.6.0a0.dev6 milestone Sep 21, 2019
neomonkeus added a commit to neomonkeus/blender_nif_plugin that referenced this issue Dec 3, 2019
- "Unassigned polygons have been selected" not selecting anything
clayne pushed a commit to clayne/blender_nif_plugin that referenced this issue Dec 7, 2019
- "Unassigned polygons have been selected" not selecting anything
neomonkeus added a commit to neomonkeus/blender_nif_plugin that referenced this issue Jan 21, 2020
- "Unassigned polygons have been selected" not selecting anything
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issue with specific functionality not working as intended but overall plugin is working. Error Failure scenario resulting in an error message that should not be seen but operation completes fully Usability Improvement/impact to make the plugin easier to use
Projects
None yet
Development

No branches or pull requests

2 participants