Strange behaviour when selecting geometry in python and using that geometry to do mesh operations via user interface #50771
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#50771
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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
OSX iMac 5k
Blender Version
2.78b
Short description of error
You need to do a 'physical' object mode toggle instead of programming that toggle to do mesh operations on python selected faces/edges/polys
Exact steps for others to reproduce the error
press I (for inset)
Should work as expected
press F6 to tweak
Observe Erratic behaviour: Nothing gets updated!
Observation: before pressing I, toggle Object/Edit mode by hand (TAB) and then use Inset will work
Toggling by python instead of by hand won't make it work..
I've noticed this problem when working on a script which does the following:
Enter Edit mode, and as an example set Face Selection Mode.
Select faces
Put those selected faces.indices in a buffer
Select other faces
Do a boolean operation on those two selections
Works as expected..
However, with those selected faces, trying a mesh operation like inset or bevel will work at first, but when pressing F6 afterwards, Blender will instantly revert back to it's last 'official' selection..
A little bit different in result, but similar.. hope this is the same bug.
The script needs to toggle back and forth between EDIT/OBJECT mode, thus creating a similar situation as in the bug report..
To prevent F6 from failing, I have to toggle MANUALLY between EDIT/OBJECT mode to get it to accept the complete selection. Python toggling the mode won't help..
Hope it all makes sense,
Regards,
Roel
Changed status to: 'Open'
Added subscriber: @kostex
Added subscriber: @dfelinto
Changed status from 'Open' to: 'Archived'
It's not a bug, you need to push undo via Python:
https://docs.blender.org/api/blender_python_api_master/bpy.ops.ed.html?highlight=undo#bpy.ops.ed.undo_push
It's related to blender/blender#38676
In other words, if you do bpy.ops.ed.undo_push() before doing 'i', it works fine. Closing the report for now. Let me know if the problem persist, so I can re-open it.