niftools / blender_niftools_addon

The Blender Niftools Addon is a Blender add-on to enable import and export of NetImmese File Formats including .nif, .kf, .egm.
http://www.niftools.org
Other
388 stars 105 forks source link

Add support for Blender 4.0 #621

Open Candoran2 opened 1 year ago

Candoran2 commented 1 year ago

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

obliviousXoblivion commented 11 months ago

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 commented 11 months ago

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

BlinkerHigh commented 3 months ago

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