Skip to content

"RuntimeError: Operator bpy.ops.particle.brush_edit.poll() failed, context is incorrect" in Blender 4.2 #59

@J4ke6599

Description

@J4ke6599

Tried to convert mesh edges into particles with "Add hair from fibermesh" and it throws you the error below

Python: Traceback (most recent call last): File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\hairNet\hairNet.py", line 697, in invoke return self.execute(context) ^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\hairNet\hairNet.py", line 668, in execute self.createHair(targetObject, hairGuides, options) File "C:\Users\Owner\AppData\Roaming\Blender Foundation\Blender\4.2\scripts\addons\hairNet\hairNet.py", line 771, in createHair bpy.ops.particle.brush_edit(stroke=[{'name':'','location':(0, 0, 0), 'mouse':(0, 0), 'mouse_event':(0, 0), 'pressure':0, 'size':0, 'pen_flip':False, "x_tilt":0, "y_tilt":0, 'time':0, 'is_start':False}]) File "C:\Program Files (x86)\Steam\steamapps\common\Blender\4.2\scripts\modules\bpy\ops.py", line 109, in __call__ ret = _op_call(self.idname_py(), kw) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ RuntimeError: Operator bpy.ops.particle.brush_edit.poll() failed, context is incorrect
I see the addon was fixed a year ago, but seems that it's no longer working again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions