Skip to content

Commit

Permalink
fix python unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ld-kerley committed Jun 2, 2024
1 parent b419623 commit 9ae8173
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/PyMaterialX/PyMaterialXCore/PyValue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ void bindPyValue(py::module& mod)
py::class_<mx::Value, mx::ValuePtr>(mod, "Value")
.def("getValueString", &mx::Value::getValueString)
.def("getTypeString", &mx::Value::getTypeString)
.def_static("createValueFromStrings", &mx::Value::createValueFromStrings);
.def_static("createValueFromStrings", &mx::Value::createValueFromStrings,
py::arg("value"),
py::arg("type"),
py::arg("typeDefPtr") = nullptr);

BIND_TYPE_INSTANCE(integer, int)
BIND_TYPE_INSTANCE(boolean, bool)
Expand Down

0 comments on commit 9ae8173

Please sign in to comment.