API regression (2.83.5 -> 2.90.1) #82416

Closed
opened 2020-11-04 23:19:47 +01:00 by Romuald Brunet · 9 comments

System Information
Operating system: macOS 10.13
Graphics card: Intel

Blender Version
Broken: 2.90.1
Worked: 2.83.5

Short description of error

There seem to be a regression in the python API when extruding faces using bpy.ops.mesh.extrude_region_move

Exact steps for others to reproduce the error

Trying to re-use an "old" blender script to modify a geometry, I've ended up finding what looks like a regression when using bpy.ops.mesh.extrude_region_move

The "broken" code in question:

# normal = Vector()
bpy.ops.mesh.extrude_region_move(

MESH_OT_extrude_region={"use_normal_flip": False, "mirror": False},
TRANSFORM_OT_translate={"value": (0, 0, -0.5),
"orient_type": 'NORMAL',
"orient_matrix_type": 'NORMAL',
"constraint_axis": (False, False, True),

                            - the fix is to use the orient_matrix parameter
                            - "orient_matrix":((0, 0, 0), (0, 0, 0), normal),
                      })

When run with 2.90, the faces are not extruded "along normal" the way they used to be in 2.83, the orient_matrix parameter needs to be used (I still have no idea what this actually changes)


Sample

The attached .blend file should make my example clearer I hope

The script should extrude the faces of the cub inwards when ran

2.83
{F9200866, size=full}

2.90
{F9200869, size=full}

abstractcubes-report.blend

**System Information** Operating system: macOS 10.13 Graphics card: Intel **Blender Version** Broken: 2.90.1 Worked: 2.83.5 **Short description of error** There seem to be a regression in the python API when extruding faces using `bpy.ops.mesh.extrude_region_move` **Exact steps for others to reproduce the error** Trying to re-use an "old" blender script to modify a geometry, I've ended up finding what looks like a regression when using `bpy.ops.mesh.extrude_region_move` The "broken" code in question: ```lang=python # normal = Vector() bpy.ops.mesh.extrude_region_move( ``` MESH_OT_extrude_region={"use_normal_flip": False, "mirror": False}, TRANSFORM_OT_translate={"value": (0, 0, -0.5), "orient_type": 'NORMAL', "orient_matrix_type": 'NORMAL', "constraint_axis": (False, False, True), ``` - the fix is to use the orient_matrix parameter - "orient_matrix":((0, 0, 0), (0, 0, 0), normal), ``` }) ``` ``` When run with 2.90, the faces are not extruded "along normal" the way they used to be in 2.83, the `orient_matrix` parameter needs to be used (I still have no idea what this actually changes) ----- **Sample** The attached .blend file should make my example clearer I hope The script should extrude the faces of the cub inwards when ran **2.83** {[F9200866](https://archive.blender.org/developer/F9200866/2.83.png), size=full} **2.90** {[F9200869](https://archive.blender.org/developer/F9200869/2.90.png), size=full} [abstractcubes-report.blend](https://archive.blender.org/developer/F9200863/abstractcubes-report.blend)
Author

Added subscriber: @Sushi

Added subscriber: @Sushi

Added subscriber: @rjg

Added subscriber: @rjg

I can reproduce this in 2.90.1, but it appears to work as expected in Blender 2.91 and 2.92.

I can reproduce this in 2.90.1, but it appears to work as expected in Blender 2.91 and 2.92.

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

There have been several changes to the transform orientation over the last year. At the moment I can't tell without bisecting which commit broke this for 2.90.1 and which fixed it for 2.91.0. Please check if this is working for you in the current daily build of 2.91 as well. In that case I think we can consider this fixed.

There have been several changes to the transform orientation over the last year. At the moment I can't tell without bisecting which commit broke this for 2.90.1 and which fixed it for 2.91.0. Please check if this is working for you in the current [daily build of 2.91 ](https://builder.blender.org/download/) as well. In that case I think we can consider this fixed.

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs User Info' to: 'Resolved'

Changed status from 'Needs User Info' to: 'Resolved'
Germano Cavalcante self-assigned this 2020-11-05 13:48:46 +01:00

388b916246 edited this area mainly.

The orientation initialization code was practically redone on that commit, so it is quite possible that it fixed some unpredictable bug.

Please try the latest daily build: https://builder.blender.org/download/

If the problem persists, please let us know so we can re-open the report. Don't forget to mention the specific version you tested again.

388b916246 edited this area mainly. The orientation initialization code was practically redone on that commit, so it is quite possible that it fixed some unpredictable bug. Please try the latest daily build: https://builder.blender.org/download/ If the problem persists, please let us know so we can re-open the report. Don't forget to mention the specific version you tested again.
Author

Tested with 2.91, this is indeed fixed

Many thanks

Tested with 2.91, this is indeed fixed Many thanks
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
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#82416
No description provided.