Page MenuHome

Error adding paper model presets
Closed, ResolvedPublic

Description

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: rB5be9ef417703

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.

Event Timeline

Robert Guetzkow (rjg) closed this task as Resolved.Tue, Feb 23, 10:25 AM
Robert Guetzkow (rjg) claimed this task.

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