Entry AREA_PLANE
is not a valid property for map_mode
in class bpy.types.BrushTextureSlot(TextureSlot)
#86986
Labels
No Label
Meta
Good First Issue
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 & Devices
Module
Python API
Module
Rendering & Cycles
Module
Sculpt, Paint & Texture
Module
User Interface
Module
VFX & Video
Priority
High
Priority
Low
Priority
Normal
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Information 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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-manual#86986
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1060 6GB/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 461.09
Blender Version
Broken: version: 2.93.0 Alpha, branch: master, commit date: 2021-03-26 21:30, hash:
blender/blender@9b87d3f029
Worked: Same happens at least as far as 2.91.0. Tested on 2.92.0 as well, same result.
Short description of error
Entry
AREA_PLANE
is not a valid property formap_mode
in classbpy.types.BrushTextureSlot(TextureSlot)
Exact steps for others to reproduce the error
bpy.data.brushes- [x].texture_slot.map_mode = 'AREA_PLANE'
TypeError: bpy_struct: item.attr = val: enum "AREA_PLANE" not found in ('VIEW_PLANE', 'TILED', '3D', 'RANDOM', 'STENCIL')
, even though the documentation states that map_mode should beenum in [‘VIEW_PLANE’, ‘AREA_PLANE’, ‘TILED’, ‘3D’, ‘RANDOM’, ‘STENCIL’], default ‘TILED’
Added subscriber: @Naoki
Added subscriber: @filedescriptor
It seems as though the problem is that the
EnumProperty
map_mode
usesrna_enum_brush_texture_slot_map_all_mode_items
which is defined as:but if the active paintmode is not
PAINT_MODE_SCULPT
then it usesrna_enum_brush_texture_slot_map_texture_mode_items
which is defined as:(notice
AREA_PLANE
is not defined). So my take from this is that it is most likely not a bug, but not documented correctly (probably due to the documentation being mostly auto-generated).Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @ideasman42
Changed status from 'Confirmed' to: 'Archived'
Closing, since there are many enum's that have values that change depending on other settings.
The documentation to address this would likely need to be general since this happens in many places.