Skip to content

Commit

Permalink
#6023: Rename Declaration.Type.None type to Declaration.Type.NullType…
Browse files Browse the repository at this point in the history
…, it's only returned on empty ScriptDeclaration instances anyway
  • Loading branch information
codereader committed Jul 28, 2022
1 parent 85efd45 commit 9aa457c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/script/interfaces/DeclarationManagerInterface.cpp
Expand Up @@ -64,7 +64,7 @@ void DeclarationManagerInterface::registerInterface(py::module& scope, py::dict&
py::class_<ScriptDeclaration> declaration(scope, "Declaration");

py::enum_<decl::Type>(declaration, "Type")
.value("None", decl::Type::None)
.value("NullType", decl::Type::None) // None is a reserved word in Python
.value("Material", decl::Type::Material)
.value("Table", decl::Type::Table)
.value("EntityDef", decl::Type::EntityDef)
Expand Down

0 comments on commit 9aa457c

Please sign in to comment.