bisect_plane via python crashes blender #72465
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#72465
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
Operating system: Windows-7-6.1.7601-SP1 64 Bits
Graphics card: GeForce GTX 1050 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 388.31
Blender Version
Broken: version: 2.81 (sub 16), branch: master, commit date: 2019-12-04 11:32, hash:
blender/blender@f1aa4d18d4
Short description of error
reduced the script to a minimum just reading the bmesh and oparating the bisect.
when i hit "run script" bledner crashes in running the bisect line.
Exact steps for others to reproduce the error
see the file attached having the script:
import bpy
from mathutils import Vector,Matrix
import bmesh
obj=bpy.context.scene.objects["Cube"]
bpy.ops.object.mode_set(mode='EDIT');
bm = bmesh.from_edit_mesh(obj.data)
visible_geom = [g for g in bm.faces- [x] + bm.verts- [x] + bm.edges[:]]
loc=Vector([0,0,0.25])
bisectno=Vector([0,0,1])bisect_test.blend
bmesh.ops.bisect_plane( bm, geom=visible_geom, dist=0.001, plane_co=loc, plane_no=bisectno)
Added subscriber: @office
bisect_plane via python crashes belnderto bisect_plane via python crashes blenderAdded subscriber: @JacquesLucke
Changed status from 'Needs Triage' to: 'Archived'
The issue seems to be not directly related to
bisect_plane
. Two things indicate that:bpy.ops.object.mode_set(mode='OBJECT')
orbmesh.update_edit_mesh(obj.data)
as last line, it does not crash anymore.I think the bug here is in your code. You take the bmesh from edit mesh, modify it, and don't write it back.
Closing because it is probably wrong api usage.
thank you! sorry for bothering then.