Add Mesh: Extra Objects: Single vert Mirror fails when using Translations #104458

Closed
opened 2023-02-28 21:21:55 +01:00 by Jesse Yurkovich · 1 comment

Blender Version
Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-02-25 22:55, hash: 86ceb6722f54

Short description of error
The Addon makes a lookup directly against object.modifiers['Mirror']

Exact steps for others to reproduce the error

  • Enable Add Mesh: Extra Objects addon
  • Switch to a non-English translation
  • Add -> Mesh -> Single Vert -> Origin and Vert Mirrored
  • Do the above step a second time

KeyError: 'bpy_prop_collection[key]: key "Mirror" not found'

Possibly bad lines

add_mesh_extra_objects\add_mesh_vertex.py:67:    if (sempty.modifiers and sempty.modifiers['Mirror']):
add_mesh_extra_objects\add_mesh_vertex.py:86:    if (sempty.modifiers and sempty.modifiers['Mirror']):
add_mesh_extra_objects\add_mesh_vertex.py:105:        mirror = bpy.context.object.modifiers['Mirror']
add_mesh_extra_objects\add_mesh_vertex.py:129:        mirror = bpy.context.object.modifiers['Mirror']
**Blender Version** Broken: version: 3.6.0 Alpha, branch: main, commit date: 2023-02-25 22:55, hash: `86ceb6722f54` **Short description of error** The Addon makes a lookup directly against `object.modifiers['Mirror']` **Exact steps for others to reproduce the error** - Enable `Add Mesh: Extra Objects` addon - Switch to a non-English translation - `Add` -> `Mesh` -> `Single Vert` -> `Origin and Vert Mirrored` - Do the above step a second time `KeyError: 'bpy_prop_collection[key]: key "Mirror" not found'` Possibly bad lines ``` add_mesh_extra_objects\add_mesh_vertex.py:67: if (sempty.modifiers and sempty.modifiers['Mirror']): add_mesh_extra_objects\add_mesh_vertex.py:86: if (sempty.modifiers and sempty.modifiers['Mirror']): add_mesh_extra_objects\add_mesh_vertex.py:105: mirror = bpy.context.object.modifiers['Mirror'] add_mesh_extra_objects\add_mesh_vertex.py:129: mirror = bpy.context.object.modifiers['Mirror'] ```
Jesse Yurkovich added the
Priority
Normal
Status
Needs Triage
Type
Report
labels 2023-02-28 21:21:55 +01:00
Blender Bot added
Status
Resolved
and removed
Status
Needs Triage
labels 2023-03-01 01:12:40 +01:00
Member

@deadpin Good call! I thought I’d found all instances of this issue in previous commits…

@deadpin Good call! I thought I’d found all instances of this issue in previous commits…
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 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-addons#104458
No description provided.