FBX export error if there is an action in NLA tweakmode #93209

Closed
opened 2021-11-19 12:12:56 +01:00 by Philipp Oeser · 6 comments
Member

System Information
Operating system: Linux-5.13.0-0.rc6.45.fc35.x86_64-x86_64-with-glibc2.34.9000 64 Bits
Graphics card: NVIDIA GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 465.31

Blender Version
Broken: version: 3.1.0 Alpha, branch: master, commit date: 2021-11-14 00:26, hash: blender/blender@7e82c840b7
Worked: never

Short description of error
FBX export error if there is an action in NLA tweakmode.
That action is then readonly and cannot be set to None (as the code tries to do)

Exact steps for others to reproduce the error
#77602.blend

  • Open .blend
  • Export > FBX
Python: Traceback (most recent call last):
  File "/scripts/addons/io_scene_fbx/__init__.py", line 644, in execute
    return export_fbx_bin.save(self, context, **keywords)
  File "/scripts/addons/io_scene_fbx/export_fbx_bin.py", line 3201, in save
    ret = save_single(operator, context.scene, depsgraph, filepath, **kwargs_mod)
  File "/scripts/addons/io_scene_fbx/export_fbx_bin.py", line 3082, in save_single
    scene_data = fbx_data_from_scene(scene, depsgraph, settings)
  File "/scripts/addons/io_scene_fbx/export_fbx_bin.py", line 2461, in fbx_data_from_scene
    animations, animated, frame_start, frame_end = fbx_animations(tmp_scdata)
  File "/scripts/addons/io_scene_fbx/export_fbx_bin.py", line 2096, in fbx_animations
    ob.animation_data.action = None
AttributeError: bpy_struct: attribute "action" from "AnimData" is read-only

location: <unknown location>:-1
**System Information** Operating system: Linux-5.13.0-0.rc6.45.fc35.x86_64-x86_64-with-glibc2.34.9000 64 Bits Graphics card: NVIDIA GeForce GTX 970M/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 465.31 **Blender Version** Broken: version: 3.1.0 Alpha, branch: master, commit date: 2021-11-14 00:26, hash: `blender/blender@7e82c840b7` Worked: never **Short description of error** FBX export error if there is an action in NLA tweakmode. That action is then readonly and cannot be set to None (as the code tries to do) **Exact steps for others to reproduce the error** [#77602.blend](https://archive.blender.org/developer/F11828555/T77602.blend) - Open .blend - Export > FBX ``` Python: Traceback (most recent call last): File "/scripts/addons/io_scene_fbx/__init__.py", line 644, in execute return export_fbx_bin.save(self, context, **keywords) File "/scripts/addons/io_scene_fbx/export_fbx_bin.py", line 3201, in save ret = save_single(operator, context.scene, depsgraph, filepath, **kwargs_mod) File "/scripts/addons/io_scene_fbx/export_fbx_bin.py", line 3082, in save_single scene_data = fbx_data_from_scene(scene, depsgraph, settings) File "/scripts/addons/io_scene_fbx/export_fbx_bin.py", line 2461, in fbx_data_from_scene animations, animated, frame_start, frame_end = fbx_animations(tmp_scdata) File "/scripts/addons/io_scene_fbx/export_fbx_bin.py", line 2096, in fbx_animations ob.animation_data.action = None AttributeError: bpy_struct: attribute "action" from "AnimData" is read-only location: <unknown location>:-1 ```
Author
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Philipp Oeser self-assigned this 2021-11-19 12:13:23 +01:00
Author
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

This issue was referenced by 85dab78f00

This issue was referenced by 85dab78f0086fe5aef4014fbb66f63dd90ef27fc

This issue was referenced by 0521e90f2d

This issue was referenced by 0521e90f2d7769510b9ce0ececdc1baf9cc9ca52

This issue was referenced by 162cba016c

This issue was referenced by 162cba016c8c11bcebea4d8d3cf80da9faf4ce76
Author
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#93209
No description provided.