Commit fbfc81a3 authored by T.J. Corona's avatar T.J. Corona

Add cast method to pybind11 bindings for smtk::attribute::Attribute

parent 30ed5190
......@@ -123,6 +123,10 @@ PySharedPtrClass< smtk::attribute::Attribute > pybind11_init_smtk_attribute_Attr
.def("types", &smtk::attribute::Attribute::types)
.def("unsetColor", &smtk::attribute::Attribute::unsetColor)
.def("userData", &smtk::attribute::Attribute::userData, py::arg("key"))
.def_static("CastTo", [](const std::shared_ptr<smtk::resource::Component> i) {
return std::dynamic_pointer_cast<smtk::attribute::Attribute>(i);
})
;
;
return instance;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment