added obj check #14
No reviewers
Labels
No Label
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: extensions/add_mesh_BoltFactory#14
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "AlaaCG/add_mesh_BoltFactory:obj-check"
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?
this error prints a few times when right clicking or randomly when doing something the viewport When there are no objects in the scene with the addon enabled, it kept annoying me so here is a pull request
it ends with this:
path_to\Blender\4.2\extensions\blender_org\boltfactory\Boltfactory.py", line 477, in Bolt_contex_menu
if obj.data is not None and 'Bolt' in obj.data.keys():
^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'data'
it's really a simple, can be just fixed by checking if there is an object in the first place before trying to access it's data
in this case, adding "obj and" fixes it, hope this gets merged, Thanks
Hi
I've re-created this and tested the fix locally on Bender versions 4.2.1 LTS and 3.6.3.
Looks good in both cases.
Should there be an issue ticket raised to capture the documentation, both here and in the old AddOn area in case there is another release and it makes the back port list?
I don't think so, it's just a very small error thus unnecessary
if you think it should be done please go ahead!
Thanks.
Thanks for the fix