== BPython API ==
authorWillian Padovani Germano <wpgermano@gmail.com>
Wed, 13 Feb 2008 20:42:36 +0000 (20:42 +0000)
committerWillian Padovani Germano <wpgermano@gmail.com>
Wed, 13 Feb 2008 20:42:36 +0000 (20:42 +0000)
Fixing mistake in Blender_ShowHelp() function: argument to Blender_Run() should be passed directly as a string, not encapsulated in a tuple (aka "s", not "(s)").

source/blender/python/api2_2x/Blender.c

index a5a740d3b9045a5f364afb7f79f69986b6ed6976..b6ec761f21901e154a5e5f534c16b560a7eea8cb 100644 (file)
@@ -795,7 +795,7 @@ static PyObject *Blender_ShowHelp(PyObject *self, PyObject *script)
 
        EXPP_dict_set_item_str(bpy_registryDict, "__help_browser", rkeyd);
 
-       arglist = Py_BuildValue("(s)", hspath);
+       arglist = Py_BuildValue("s", hspath);
        Blender_Run(self, arglist);
        Py_DECREF(arglist);