INFO panel incorrectly printing operators using constraint_matrix #61563

Closed
opened 2019-02-15 00:56:58 +01:00 by David Webb · 6 comments

System Information
Operating system: Windows 10
Graphics card: GTX 1080

Blender Version
Broken:
2.80

Short description of error
When trying to execute operators pasted from 'INFO' that use constraint_matrix, a float is expected not int.

Exact steps for others to reproduce the error
Run this in 'CONSOLE':
bpy.ops.transform.translate(value=(0.1, 0.1, 0.1), constraint_matrix=(1, 0, 0, 0, 1, 0, 0, 0, 1))

INFO panel should print:
bpy.ops.transform.translate(value=(0.1, 0.1, 0.1), constraint_matrix=(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0))

**System Information** Operating system: Windows 10 Graphics card: GTX 1080 **Blender Version** Broken: 2.80 **Short description of error** When trying to execute operators pasted from 'INFO' that use constraint_matrix, a float is expected not int. **Exact steps for others to reproduce the error** Run this in 'CONSOLE': bpy.ops.transform.translate(value=(0.1, 0.1, 0.1), constraint_matrix=(1, 0, 0, 0, 1, 0, 0, 0, 1)) INFO panel should print: bpy.ops.transform.translate(value=(0.1, 0.1, 0.1), constraint_matrix=(1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0))
Author

Added subscriber: @Way2Close-2

Added subscriber: @Way2Close-2

Added subscriber: @ZedDB

Added subscriber: @ZedDB
Sebastian Parborg self-assigned this 2019-02-15 10:43:04 +01:00

The function expects a matrix: https://docs.blender.org/api/blender_python_api_current/mathutils.html?highlight=vector#mathutils.Matrix

However the matrices are printed in that way, which is a bit unfortunate.

The function expects a matrix: https://docs.blender.org/api/blender_python_api_current/mathutils.html?highlight=vector#mathutils.Matrix However the matrices are printed in that way, which is a bit unfortunate.

I've uploaded a fix for this issue: D4358

I've uploaded a fix for this issue: [D4358](https://archive.blender.org/developer/D4358)

This issue was referenced by 3d5585fac4

This issue was referenced by 3d5585fac48ef5ccc7943b05fdb4189fe6e57f0a

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
4 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: blender/blender#61563
No description provided.