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

Add support for Blender 4.0 #621

Open
Candoran2 opened this issue Nov 21, 2023 · 3 comments
Open

Add support for Blender 4.0 #621

Candoran2 opened this issue Nov 21, 2023 · 3 comments
Assignees
Labels
Improvement The issue improves on existing functionality New Feature A new feature not currently implemented

Comments

@Candoran2
Copy link
Member

The update to Blender 4.0 seems to have cause some errors (see #620 for an example). This issue is to serve as a list of (potential) necessary changes for updating for Blender 4.0 and as a place for discussion in the chosen approach.

Breaking changes to 4.0

  • Face maps were removed in favour of custom face attributes. We use face maps to store the partition for Bethesda games like Oblivion, Fallout 3, Skyrim and others.
@Candoran2 Candoran2 added New Feature A new feature not currently implemented Improvement The issue improves on existing functionality labels Nov 21, 2023
@obliviousXoblivion
Copy link

Any way to like re-enable face maps? Or is it possible to download an old version of blender and the niftools addon to export face maps?

Just trying to make mods for Oblivion but when I attempt to export the file I am greeted with this message

Python: Traceback (most recent call last):
File "C:\Users\admin\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\io_scene_niftools\nif_export.py", line 135, in execute
root_block = self.objecthelper.export_root_node(self.root_objects, filebase)
File "C:\Users\admin\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\io_scene_niftools\modules\nif_export\object_init_.py", line 104, in export_root_node
self.export_node(b_obj, None, n_node_type=b_obj.niftools.nodetype)
File "C:\Users\admin\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\io_scene_niftools\modules\nif_export\object_init_.py", line 216, in export_node
self.export_node(b_child, node)
File "C:\Users\admin\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\io_scene_niftools\modules\nif_export\object_init_.py", line 169, in export_node
mesh = self.mesh_helper.export_tri_shapes(b_obj, n_parent, self.n_root, b_obj.name)
File "C:\Users\admin\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\io_scene_niftools\modules\nif_export\geometry\mesh_init_.py", line 107, in export_tri_shapes
polygon_parts = self.get_polygon_parts(b_obj, eval_mesh)
File "C:\Users\admin\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\io_scene_niftools\modules\nif_export\geometry\mesh_init_.py", line 742, in get_polygon_parts
face_map = b_obj.face_maps.get(bodypartgroupname)
AttributeError: 'Object' object has no attribute 'face_maps'

@Candoran2
Copy link
Member Author

You can still use the current addon with any version of Blender 2.8-3.6

@BlinkerHigh
Copy link

Are you planning to update your addon for Blender 4+?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement The issue improves on existing functionality New Feature A new feature not currently implemented
Projects
None yet
Development

No branches or pull requests

4 participants