diff --git a/doc/ReleaseNotes b/doc/ReleaseNotes index 35d25a5dea..da8e24ae0f 100644 --- a/doc/ReleaseNotes +++ b/doc/ReleaseNotes @@ -42,6 +42,7 @@ This issue fixes several bugs that were still found in 1.9.2. * Fix mipmap filtering issues in tinydisplay renderer * Fix exception when creating intervals before ShowBase is started * Fix rare X11 .ico cursor bug; also now supports PNG-compressed icons +* Add keyword argument support to make() methods such as Shader.make() ------------------------ RELEASE 1.9.2 ------------------------ diff --git a/dtool/src/interrogate/functionRemap.cxx b/dtool/src/interrogate/functionRemap.cxx index b2f703c926..f975a57904 100644 --- a/dtool/src/interrogate/functionRemap.cxx +++ b/dtool/src/interrogate/functionRemap.cxx @@ -810,6 +810,11 @@ setup_properties(const InterrogateFunction &ifunc, InterfaceMaker *interface_mak _flags |= F_coerce_constructor; } + if (_args_type == InterfaceMaker::AT_varargs) { + // Of course methods named "make" can still take kwargs. + _args_type = InterfaceMaker::AT_keyword_args; + } + } else if (fname == "operator /") { if (_has_this && _parameters.size() == 2 && TypeManager::is_float(_parameters[1]._remap->get_new_type())) {