forked from bartvdbraak/blender
fix rna_info, python method to C function wasn't being tested for. (broke changelog generator)
This commit is contained in:
parent
8771a9f861
commit
279a2a1916
@ -148,7 +148,9 @@ class InfoStructRNA:
|
||||
import types
|
||||
functions = []
|
||||
for identifier, attr in self._get_py_visible_attrs():
|
||||
if type(attr) in {types.FunctionType, types.MethodType}:
|
||||
# methods may be python wrappers to C functions
|
||||
attr_func = getattr(attr, "__func__", attr)
|
||||
if type(attr_func) in {types.FunctionType, types.MethodType}:
|
||||
functions.append((identifier, attr))
|
||||
return functions
|
||||
|
||||
@ -156,7 +158,9 @@ class InfoStructRNA:
|
||||
import types
|
||||
functions = []
|
||||
for identifier, attr in self._get_py_visible_attrs():
|
||||
if type(attr) in {types.BuiltinMethodType, types.BuiltinFunctionType}:
|
||||
# methods may be python wrappers to C functions
|
||||
attr_func = getattr(attr, "__func__", attr)
|
||||
if type(attr_func) in {types.BuiltinMethodType, types.BuiltinFunctionType}:
|
||||
functions.append((identifier, attr))
|
||||
return functions
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user