0
0
BoltFactory Add-on
Go to file
AlaaCG 1d945a6aa6 added obj check (#14)
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

Reviewed-on: extensions/add_mesh_BoltFactory#14
Reviewed-by: Nika Kutsniashvili <nickberckley@noreply.localhost>
2024-09-19 15:15:26 +02:00
source added obj check (#14) 2024-09-19 15:15:26 +02:00
.editorconfig Add editorconfig 2024-05-15 14:05:18 +10:00
.gitignore Add gitignore 2024-05-15 14:03:47 +10:00
pyproject.toml Add pyproject.toml for autopep8 settings 2024-05-15 14:05:53 +10:00
README.md README file 2024-05-14 12:48:33 +02:00

BoltFactory Add-on

This add-on was part of Blender 4.1 bundled add-ons. This is now available as an extension on the Extensions platform.

To build a new version of the extension:

  • <path_to_blender> -c extension build --source-dir=./source

For more information about building extensions refer to the documentation.


This add-on is offered as it is and maintaned by the community, no support expected.