[Bf-blender-cvs] [f6825d333bf] master: Fix bpy library load: invalid function signature

Campbell Barton noreply at git.blender.org
Sun Aug 20 11:05:33 CEST 2017


Commit: f6825d333bfe2d58227e5e7421cd8719d89cd59a
Author: Campbell Barton
Date:   Sun Aug 20 19:04:16 2017 +1000
Branches: master
https://developer.blender.org/rBf6825d333bfe2d58227e5e7421cd8719d89cd59a

Fix bpy library load: invalid function signature

===================================================================

M	source/blender/python/intern/bpy_library_load.c

===================================================================

diff --git a/source/blender/python/intern/bpy_library_load.c b/source/blender/python/intern/bpy_library_load.c
index 15f3c665fcf..cb6a7147368 100644
--- a/source/blender/python/intern/bpy_library_load.c
+++ b/source/blender/python/intern/bpy_library_load.c
@@ -73,7 +73,7 @@ typedef struct {
 } BPy_Library;
 
 static PyObject *bpy_lib_load(PyObject *self, PyObject *args, PyObject *kwds);
-static PyObject *bpy_lib_enter(BPy_Library *self, PyObject *args);
+static PyObject *bpy_lib_enter(BPy_Library *self);
 static PyObject *bpy_lib_exit(BPy_Library *self, PyObject *args);
 static PyObject *bpy_lib_dir(BPy_Library *self);
 
@@ -237,7 +237,7 @@ static PyObject *_bpy_names(BPy_Library *self, int blocktype)
 	return list;
 }
 
-static PyObject *bpy_lib_enter(BPy_Library *self, PyObject *UNUSED(args))
+static PyObject *bpy_lib_enter(BPy_Library *self)
 {
 	PyObject *ret;
 	BPy_Library *self_from;



More information about the Bf-blender-cvs mailing list