Error adding paper model presets #85914

Closed
opened 2021-02-23 09:35:01 +01:00 by Xenos Lai · 4 comments

System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: GeForce GTX 980/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.40

Blender Version
Broken: version: 2.91.2, branch: master, commit date: 2021-01-19 16:15, hash: blender/blender@5be9ef4177

Addon Information
Name: Export Paper Model (1, 1)
Author: Addam Dominec

Short description of error
Adding a preset produces the following error:
Python: Traceback (most recent call last):

File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\scripts\startup\bl_operators\presets.py", line 170, in execute
  for rna_path in self.preset_values:
File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\scripts\modules\bpy_types.py", line 721, in __getattribute__
  return super().__getattribute__(attr)
File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\scripts\addons\io_export_paper_model.py", line 2292, in preset_values
  properties = op.get_rna().bl_rna.properties.items()

AttributeError: '_BPyOpsSubModOp' object has no attribute 'get_rna'

location: :-1

Exact steps for others to reproduce the error

  1. Click on the "+" Add Paper Model Preset button;
  2. Enter a preset name "MyPreset";
  3. Click OK;
  4. The error occurred.
**System Information** Operating system: Windows-10-10.0.19041-SP0 64 Bits Graphics card: GeForce GTX 980/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.40 **Blender Version** Broken: version: 2.91.2, branch: master, commit date: 2021-01-19 16:15, hash: `blender/blender@5be9ef4177` **Addon Information** Name: Export Paper Model (1, 1) Author: Addam Dominec **Short description of error** Adding a preset produces the following error: Python: Traceback (most recent call last): ``` File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\scripts\startup\bl_operators\presets.py", line 170, in execute for rna_path in self.preset_values: File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\scripts\modules\bpy_types.py", line 721, in __getattribute__ return super().__getattribute__(attr) File "C:\Program Files\Blender Foundation\Blender 2.91\2.91\scripts\addons\io_export_paper_model.py", line 2292, in preset_values properties = op.get_rna().bl_rna.properties.items() ``` AttributeError: '_BPyOpsSubModOp' object has no attribute 'get_rna' location: <unknown location>:-1 **Exact steps for others to reproduce the error** 1. Click on the "+" Add Paper Model Preset button; 2. Enter a preset name "MyPreset"; 3. Click OK; 4. The error occurred.
Author

Added subscriber: @HeavyArmoredMan

Added subscriber: @HeavyArmoredMan

Added subscriber: @rjg

Added subscriber: @rjg

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

Changed status from 'Needs Triage' to: 'Resolved'
Robert Guetzkow self-assigned this 2021-02-23 10:25:11 +01:00

This is already fixed by e00751ae47. You can test that this works properly in the daily builds of Blender 2.92 .

This is already fixed by e00751ae47. You can test that this works properly in the daily builds of [Blender 2.92 ](https://builder.blender.org/download/).
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#85914
No description provided.