Skip to content

Commit 73c2295

Browse files
Exposed enable/disable methods on Post::Material in Python
1 parent ca4d9a3 commit 73c2295

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

PyLib/PyFBSPost.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ void init_FBSPost(py::module& m)
9191
.def_property("name", &Material::GetName, &Material::SetName)
9292
.def("SetColor", &Material::setColor)
9393
.def("Show", &Material::show)
94-
.def("Hide", &Material::hide);
94+
.def("Hide", &Material::hide)
95+
.def("Enabled", &Material::enabled)
96+
.def("Enable", &Material::enable)
97+
.def("Disble", &Material::disable)
98+
;
9599

96100
py::class_<FEPostModel>(post, "PostModel")
97101
.def("Materials", &FEPostModel::Materials)

0 commit comments

Comments
 (0)