Maniphest T76049

Errors after adding a Gear or Worm (extra objects)
Closed, Resolved

Assigned To
Vladimir Spivak (cwolf3d)
Authored By
xan2622 (xan2622)
Apr 24 2020, 2:05 PM
Tags
  • Add-ons (Community)
Subscribers
Donald Silva (i080457)
Robert Guetzkow (rjg)
xan2622 (xan2622)

Description

System Information:
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 442.19

Blender Version:
Broken: version: 2.82 (sub 7), branch: master, commit date: 2020-03-12 05:06, hash: rB375c7dc4caf4

Addon Information:
Name: Extra Objects (0, 3, 6)
Author: Multiple Authors

Short description of error:
In the Blender Preferences, if you have enabled Editing > Objects > New Objects > Enter Edit Mode.
And then, if you try to add a Gear or Worm (Extra Objects addon), errors appear.

Error messages:

Adding a Gear:

Traceback (most recent call last):
  File "E:\blender\blender_official\2.82\scripts\addons\add_mesh_extra_objects\add_mesh_gears.py", line 749, in invoke
    self.execute(context)
  File "E:\blender\blender_official\2.82\scripts\addons\add_mesh_extra_objects\add_mesh_gears.py", line 714, in execute
    tipGroup.add(verts_tip, 1.0, 'ADD')
RuntimeError: Error: VertexGroup.add(): cannot be called while object is in edit mode

location: <unknown location>:-1

Adding a Worm:

Traceback (most recent call last):
  File "E:\blender\blender_official\2.82\scripts\addons\add_mesh_extra_objects\add_mesh_gears.py", line 930, in execute
    tipGroup.add(verts_tip, 1.0, 'ADD')
RuntimeError: Error: VertexGroup.add(): cannot be called while object is in edit mode


location: <unknown location>:-1

Exact steps for others to reproduce the error

  1. In the Blender Preferences, enable Editing > Objects > New Objects > Enter Edit Mode.
  2. Activate the Extra Objects addon
  3. In Object mode, try to add a Gear or Worm

Revisions and Commits

rBA Blender Add-ons

Related Objects

Mentioned In
rBAd605104b9cfb: Add Curve: Extra Objects: addon fix when enabled bpy.context.preferences.edit.
Mentioned Here
rBAd605104b9cfb: Add Curve: Extra Objects: addon fix when enabled bpy.context.preferences.edit.
rBAaf291e44f861: Addon: Mesh Extra Objects: Gears, Wallfactory, Beam, Pipe: Implemented add…

Event Timeline

xan2622 (xan2622) created this task.Apr 24 2020, 2:05 PM
xan2622 (xan2622) updated the task description.
xan2622 (xan2622) added a comment.EditedApr 24 2020, 2:10 PM

It happens too if you try to add a Pipe Joint:

Traceback (most recent call last):
  File "E:\blender\blender_official\2.82\scripts\addons\add_mesh_extra_objects\add_mesh_pipe_joint.py", line 261, in execute
    bpy.ops.object.join()
  File "E:\blender\blender_official\2.82\scripts\modules\bpy\ops.py", line 201, in __call__
    ret = op_call(self.idname_py(), None, kw)
RuntimeError: Error: This data does not support joining in edit mode


location: <unknown location>:-1

With a Diamond too:

Traceback (most recent call last):
  File "E:\blender\blender_official\2.82\scripts\addons\add_mesh_extra_objects\add_mesh_gemstones.py", line 335, in execute
    bpy.ops.object.join()
  File "E:\blender\blender_official\2.82\scripts\modules\bpy\ops.py", line 201, in __call__
    ret = op_call(self.idname_py(), None, kw)
RuntimeError: Error: This data does not support joining in edit mode

location: <unknown location>:-1

With a Gem too:

Traceback (most recent call last):
  File "E:\blender\blender_official\2.82\scripts\addons\add_mesh_extra_objects\add_mesh_gemstones.py", line 478, in execute
    bpy.ops.object.join()
  File "E:\blender\blender_official\2.82\scripts\modules\bpy\ops.py", line 201, in __call__
    ret = op_call(self.idname_py(), None, kw)
RuntimeError: Error: This data does not support joining in edit mode

location: <unknown location>:-1

With a Teapot:

Traceback (most recent call last):
  File "E:\blender\blender_official\2.82\scripts\addons\add_mesh_extra_objects\add_mesh_teapot.py", line 40, in execute
    bpy.ops.mesh.remove_doubles()
  File "E:\blender\blender_official\2.82\scripts\modules\bpy\ops.py", line 201, in __call__
    ret = op_call(self.idname_py(), None, kw)
RuntimeError: Operator bpy.ops.mesh.remove_doubles.poll() failed, context is incorrect

location: <unknown location>:-1
Robert Guetzkow (rjg) added a subscriber: Robert Guetzkow (rjg).Apr 24 2020, 2:28 PM
This comment was removed by Robert Guetzkow (rjg).
Robert Guetzkow (rjg) changed the task status from Needs Triage to Confirmed.Apr 24 2020, 2:40 PM

I misread the report initially, hence I removed my previous comment.

Robert Guetzkow (rjg) added a comment.Apr 24 2020, 2:45 PM

This requires a fix similar to rBAd605104b9cfbbe2a8683aec775e8d3bf14de3a5c that was made for the Extra Objects: Curve add-on.

Ankit Meel (ankitm) mentioned this in rBAd605104b9cfb: Add Curve: Extra Objects: addon fix when enabled bpy.context.preferences.edit..Apr 24 2020, 2:55 PM
Vladimir Spivak (cwolf3d) claimed this task.Apr 24 2020, 3:02 PM
Robert Guetzkow (rjg) added a subscriber: Donald Silva (i080457).
Vladimir Spivak (cwolf3d) closed this task as Resolved by committing rBA2d8edd6dedc8: Fix T76049: Errors after adding a Gear or Worm (extra objects).May 3 2020, 6:58 PM
Vladimir Spivak (cwolf3d) added a commit: rBA2d8edd6dedc8: Fix T76049: Errors after adding a Gear or Worm (extra objects).