Fix typo: obselete -> obsolete

This commit is contained in:
Moritz Brückner 2020-09-24 16:37:56 +02:00
parent 24643eac51
commit bd50923411
2 changed files with 4 additions and 4 deletions

View file

@ -450,7 +450,7 @@ def add_category(category: str, section: str = 'default', icon: str = 'BLANK1',
return None
def add_node(node_type: Type[bpy.types.Node], category: str, section: str = 'default', is_obselete: bool = False) -> None:
def add_node(node_type: Type[bpy.types.Node], category: str, section: str = 'default', is_obsolete: bool = False) -> None:
"""
Registers a node to the given category. If no section is given, the
node is put into the default section that does always exist.
@ -463,8 +463,8 @@ def add_node(node_type: Type[bpy.types.Node], category: str, section: str = 'def
nodes.append(node_type)
node_category = get_category(category)
if is_obselete:
# We need the obselete nodes to be registered in order to have them replaced,
if is_obsolete:
# We need the obsolete nodes to be registered in order to have them replaced,
# but do not add them to the menu.
return

View file

@ -30,5 +30,5 @@ class RotateObjectAroundAxisNode(ArmLogicTreeNode):
row = layout.row(align=True)
row.label(text='Depreciated. Consider using "Rotate Object"')
add_node(RotateObjectAroundAxisNode, category=PKG_AS_CATEGORY, section='rotation', is_obselete=True)
add_node(RotateObjectAroundAxisNode, category=PKG_AS_CATEGORY, section='rotation', is_obsolete=True)