Skip to content

Unable to export to Zbrush if object has face sets and certain modifiers #542

@HappyHeads

Description

@HappyHeads

If I try to export a mesh from Blender that has face sets and a modifier that makes new triangles like mirror, subdivide, multires, basically anything from the generate tab, then it throws an error and the mesh is not exported.

Python: Traceback (most recent call last):
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.5\extensions\user_default\gob\ui.py", line 113, in invoke
    bpy.ops.scene.gob_export(as_tool=as_tool)
  File "C:\Program Files\Blender Foundation\Blender 4.5\4.5\scripts\modules\bpy\ops.py", line 109, in __call__
    ret = _op_call(self.idname_py(), kw)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Error: Python: Traceback (most recent call last):
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.5\extensions\user_default\gob\gob_export.py", line 684, in execute
    self.exportGoZ(context.scene, obj, f'{PATH_PROJECT}')
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.5\extensions\user_default\gob\gob_export.py", line 354, in exportGoZ
    obj.data.attributes['.sculpt_face_set'].data.foreach_get('value', face_set_data)
RuntimeError: internal error setting the array
Location: C:\Program Files\Blender Foundation\Blender 4.5\4.5\scripts\modules\bpy\ops.py:109

If export settings are changed to generate polygroups from vertex groups or materials instead, the mesh exports fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions