mirror of
https://github.com/ModOrganizer2/modorganizer-plugin_python.git
synced 2026-07-27 14:03:33 -07:00
Add default argument to GuessedString constructor to match C++ implementation.
This commit is contained in:
@@ -712,7 +712,7 @@ BOOST_PYTHON_MODULE(mobase)
|
||||
|
||||
bpy::class_<MOBase::GuessedValue<QString>, boost::noncopyable>("GuessedString")
|
||||
.def(bpy::init<>())
|
||||
.def(bpy::init<QString const&, EGuessQuality>((bpy::arg("value"), "quality")))
|
||||
.def(bpy::init<QString const&, EGuessQuality>((bpy::arg("value"), bpy::arg("quality") = EGuessQuality::GUESS_USER)))
|
||||
.def("update",
|
||||
static_cast<GuessedValue<QString>& (GuessedValue<QString>::*)(const QString&)>(&GuessedValue<QString>::update),
|
||||
bpy::return_self<>(), bpy::arg("value"))
|
||||
|
||||
Reference in New Issue
Block a user