Custom Property Error : Wrong Subtype #85930

Closed
opened 2021-02-23 21:34:52 +01:00 by Gorgious · 4 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.38

Blender Version
Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-02-23 11:07, hash: 420f538fad
Worked: version: 2.92.0 Beta, branch: master, commit date: 2021-02-03 20:05, hash: ebd2aa789e

Short description of error
Console throws error when trying to edit a Custom Property.

Python: Traceback (most recent call last):
  File "D:\**\blender-2.93.0-420f538fadfd-windows64\2.93\scripts\startup\bl_operators\wm.py", line 1428, in invoke
    self._init_subtype(prop_type, is_array, subtype)
  File "D:\**\blender-2.93.0-420f538fadfd-windows64\2.93\scripts\startup\bl_operators\wm.py", line 1237, in _init_subtype
    self.subtype = subtype
  File "D:\**\blender-2.93.0-420f538fadfd-windows64\2.93\scripts\modules\bpy_types.py", line 727, in __setattr__
    return setattr(properties, attr, value)
TypeError: bpy_struct: item.attr = val: enum "NONE" not found in ('All', 'User', '3D View', 'Add Curve', 'Add Mesh', 'Animation', 'Camera', 'Development', 'Import-Export', 'Interface', 'Lighting', 'Material', 'Mesh', 'Node', 'Object', 'Paint', 'Render', 'Rigging', 'Sequencer', 'System', 'Tools', 'UV', 'Video Tools')

location: <unknown location>:-1

Exact steps for others to reproduce the error
Add a Mesh Object
Add a Custom Property to the object
Click on the Edit Button on the right of the property field
Throws error (no crash though)

More Information

There is a confusion between the expected Property SUBTYPE Enum and the Addon Category Enum, since the list in the error is the add-on categories.
The error also occurs when trying to edit a property created with the Python API.

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 1060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.38 **Blender Version** Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-02-23 11:07, hash: `420f538fad` Worked: version: 2.92.0 Beta, branch: master, commit date: 2021-02-03 20:05, hash: `ebd2aa789e` **Short description of error** Console throws error when trying to edit a Custom Property. ``` Python: Traceback (most recent call last): File "D:\**\blender-2.93.0-420f538fadfd-windows64\2.93\scripts\startup\bl_operators\wm.py", line 1428, in invoke self._init_subtype(prop_type, is_array, subtype) File "D:\**\blender-2.93.0-420f538fadfd-windows64\2.93\scripts\startup\bl_operators\wm.py", line 1237, in _init_subtype self.subtype = subtype File "D:\**\blender-2.93.0-420f538fadfd-windows64\2.93\scripts\modules\bpy_types.py", line 727, in __setattr__ return setattr(properties, attr, value) TypeError: bpy_struct: item.attr = val: enum "NONE" not found in ('All', 'User', '3D View', 'Add Curve', 'Add Mesh', 'Animation', 'Camera', 'Development', 'Import-Export', 'Interface', 'Lighting', 'Material', 'Mesh', 'Node', 'Object', 'Paint', 'Render', 'Rigging', 'Sequencer', 'System', 'Tools', 'UV', 'Video Tools') location: <unknown location>:-1 ``` **Exact steps for others to reproduce the error** Add a Mesh Object Add a Custom Property to the object Click on the Edit Button on the right of the property field Throws error (no crash though) **More Information** There is a confusion between the expected Property SUBTYPE Enum and the Addon Category Enum, since the list in the error is the add-on categories. The error also occurs when trying to edit a property created with the Python API.
Author

Added subscriber: @nathan.hild

Added subscriber: @nathan.hild

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

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

This issue was referenced by 8d50a3e19e

This issue was referenced by 8d50a3e19e025ef470132e7edadd7b180db833f5

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Campbell Barton self-assigned this 2021-02-24 06:22:46 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 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#85930
No description provided.