Skip to content
Snippets Groups Projects
Commit ed354532 authored by Clemens Barth's avatar Clemens Barth
Browse files

The following warnings appeared in the terminal when starting blender:

 make annotation: AddonPreferences.bool_pdb
 make annotation: AddonPreferences.bool_xyz
 make annotation: AddonPreferences.bool_utility

This was fixed by using 'bool_name : BoolProperty(...' instead of 'bool_name = BoolProperty(...'
parent d3882e8a
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
# Start of project : 2011-08-31 by CB # Start of project : 2011-08-31 by CB
# First publication in Blender : 2011-11-11 by CB # First publication in Blender : 2011-11-11 by CB
# Fusion of the PDB, XYZ and Panel : 2019-03-22 by CB # Fusion of the PDB, XYZ and Panel : 2019-03-22 by CB
# Last modified : 2019-03-28 # Last modified : 2019-05-17
# #
# Contributing authors # Contributing authors
# ==================== # ====================
...@@ -93,19 +93,19 @@ class AddonPreferences(AddonPreferences): ...@@ -93,19 +93,19 @@ class AddonPreferences(AddonPreferences):
# when defining this in a submodule of a python package. # when defining this in a submodule of a python package.
bl_idname = __name__ bl_idname = __name__
bool_pdb = BoolProperty( bool_pdb : BoolProperty(
name="PDB import/export", name="PDB import/export",
default=True, default=True,
description="Import/export PDB", description="Import/export PDB",
) )
bool_xyz = BoolProperty( bool_xyz : BoolProperty(
name="XYZ import/export", name="XYZ import/export",
default=True, default=True,
description="Import/export XYZ", description="Import/export XYZ",
) )
# This boolean is checked in the poll function in PANEL_PT_prepare # This boolean is checked in the poll function in PANEL_PT_prepare
# (see utility.py). # (see utility.py).
bool_utility = BoolProperty( bool_utility : BoolProperty(
name="Utility panel", name="Utility panel",
default=False, default=False,
description=("Panel with functionalities for modifying " \ description=("Panel with functionalities for modifying " \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment