mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
PyAPI: correct function name in argument parsing
Also correct axis in `blf` example. Ref !154424
This commit is contained in:
parent
ba48286c3a
commit
08516bebb1
2 changed files with 2 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ font_id = blf.load("/path/to/font.ttf")
|
|||
|
||||
blf.color(font_id, 1.0, 1.0, 1.0, 1.0)
|
||||
blf.size(font_id, font_size)
|
||||
blf.position(font_id, 0, image_size[0] - font_size, 0)
|
||||
blf.position(font_id, 0, image_size[1] - font_size, 0)
|
||||
|
||||
blf.enable(font_id, blf.WORD_WRAP)
|
||||
blf.word_wrap(font_id, image_size[0])
|
||||
|
|
|
|||
|
|
@ -1707,7 +1707,7 @@ static PyObject *BPy_IDGroup_pop(BPy_IDProperty *self, PyObject *args)
|
|||
char *key;
|
||||
PyObject *def = nullptr;
|
||||
|
||||
if (!PyArg_ParseTuple(args, "s|O:get", &key, &def)) {
|
||||
if (!PyArg_ParseTuple(args, "s|O:pop", &key, &def)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue