Bolt Factory: Missing Data after Change Bolt. #72654

Closed
opened 2019-12-23 06:12:24 +01:00 by Brendon Murphy · 8 comments
Member

System Information
Operating system: Win
Graphics card: hd7850

Blender Version
Broken:
Probably for a while...
Worked: Before changes.

Short description of error
Unable to create new bolt after change bolt then bolt deletion.

Exact steps for others to reproduce the error
Add a bolt.
Click in the 3d view to remove the operator menu.
Right click to access the specials menu "Change Bolt" and press it.
Change settings in the operator panel.
Delete the bolt.
Using the Add Menu, try to add another bolt.

Error:

Traceback (most recent call last):
  File "C:\Users\Dell\Downloads\blender-2.82-20_12_19-windows64\2.82\scripts\addons\add_mesh_BoltFactory\Boltfactory.py", line 390, in invoke
    self.execute(context)
  File "C:\Users\Dell\Downloads\blender-2.82-20_12_19-windows64\2.82\scripts\addons\add_mesh_BoltFactory\Boltfactory.py", line 347, in execute
    if 'Bolt' in obj.data.keys():
AttributeError: 'NoneType' object has no attribute 'data'

location: <unknown location>:-1

@cwolf3d
Hi, can you please fix this? I think you may find it affects all addons that use the "Change it". I've noticed issue with Geodesic Domes but not tested all the others yet.
Thanks.

**System Information** Operating system: Win Graphics card: hd7850 **Blender Version** Broken: Probably for a while... Worked: Before changes. **Short description of error** Unable to create new bolt after change bolt then bolt deletion. **Exact steps for others to reproduce the error** Add a bolt. Click in the 3d view to remove the operator menu. Right click to access the specials menu "Change Bolt" and press it. Change settings in the operator panel. Delete the bolt. Using the Add Menu, try to add another bolt. Error: ``` Traceback (most recent call last): File "C:\Users\Dell\Downloads\blender-2.82-20_12_19-windows64\2.82\scripts\addons\add_mesh_BoltFactory\Boltfactory.py", line 390, in invoke self.execute(context) File "C:\Users\Dell\Downloads\blender-2.82-20_12_19-windows64\2.82\scripts\addons\add_mesh_BoltFactory\Boltfactory.py", line 347, in execute if 'Bolt' in obj.data.keys(): AttributeError: 'NoneType' object has no attribute 'data' location: <unknown location>:-1 ``` @cwolf3d Hi, can you please fix this? I think you may find it affects all addons that use the "Change it". I've noticed issue with Geodesic Domes but not tested all the others yet. Thanks.
Author
Member

Added subscribers: @cwolf3d, @BrendonMurphy

Added subscribers: @cwolf3d, @BrendonMurphy
Brendon Murphy self-assigned this 2019-12-23 06:14:14 +01:00
Author
Member

Setting Priority.

Setting Priority.

Added subscriber: @VanessaE

Added subscriber: @VanessaE

Copied over from blender/blender#72651 by request:

If I add a bolt, then select it and change it [by using "Change Bolt" in the object context menu], and then immediately add a second bolt (by doing Add -> Mesh -> Bolt again), this second bolt overwrites the first one, as though I were still trying to change that one. It keeps doing this no matter how many times I try... unless: if I add some other mesh such as a cube, the next add-bolt action indeed creates a new bolt.

Copied over from blender/blender#72651 by request: If I add a bolt, then select it and change it [by using "Change Bolt" in the object context menu], and then immediately add a second bolt (by doing `Add -> Mesh -> Bolt` again), this second bolt overwrites the first one, as though I were still trying to change that one. It keeps doing this no matter how many times I try... unless: if I add some other mesh such as a cube, the next add-bolt action indeed creates a new bolt.
Brendon Murphy was unassigned by Vladimir Spivak 2019-12-23 08:30:47 +01:00
Vladimir Spivak self-assigned this 2019-12-23 08:30:47 +01:00
Vladimir Spivak was unassigned by Dalai Felinto 2019-12-23 13:39:07 +01:00

This issue was referenced by 2f4c557df0

This issue was referenced by 2f4c557df001572041f90d36931abbd1fead8b4a

Bug fixed: https://developer.blender.org/rBA2f4c557df001572041f90d36931abbd1fead8b4a
Later I will fix it in the other add-ons.

Bug fixed: https://developer.blender.org/rBA2f4c557df001572041f90d36931abbd1fead8b4a Later I will fix it in the other add-ons.
Author
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Brendon Murphy self-assigned this 2019-12-24 22:11:03 +01:00
Author
Member

thanks!

thanks!
Sign in to join this conversation.
No Milestone
No project
No Assignees
4 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#72654
No description provided.