Page MenuHome

Pressing autocomplete in the console after tool_settings prints warning message
Closed, ResolvedPublic

Description

System Information
Operating system: Windows-10-10.0.19042-SP0 64 Bits
Graphics card: GeForce GT 740/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 456.71

Blender Version
Broken: version: 3.1.0 Release Candidate, branch: master, commit date: 2022-03-07 11:37, hash: rB00f6e4c99051
Worked: (newest version of Blender that worked as expected)

Short description of error
Pressing autocomplete after entering bpy.context.tool_settings. into the Py Console prints a strange warning message to the system console. Just reporting it incase it wasn't supposed to be there. The message:

WARN (bpy.rna): C:\Users\blender\git\blender-v310\blender.git\source\blender\python\intern\bpy_rna.c:1352 pyrna_enum_to_py: current value '0' matches no enum in 'ToolSettings', '(null)', 'uv_relax_method'

Exact steps for others to reproduce the error

  1. Open Blender.
  2. Go to the Scripting workspace.
  3. Enter bpy.context.tool_settings. into the Py Console and press Tab or Console > Auto Complete.
  4. Warning message prints to system console.

Event Timeline

sicutunum created this task.Mar 9 2022, 2:13 AM

@Campbell Barton (campbellbarton) hi, I just refreshed the page and saw you have committed the fix. Thanks.
I also realized that the default value for relax method was not set. This is actually reported here- T73226: UV Relaxation Method is not set
Now I'll just merge other report into this (and will abandon the patch D6753).