Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/python/api2_2x/Main.c')
-rw-r--r--source/blender/python/api2_2x/Main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Main.c b/source/blender/python/api2_2x/Main.c
index 4d4c9474f75..138c6f9fa7e 100644
--- a/source/blender/python/api2_2x/Main.c
+++ b/source/blender/python/api2_2x/Main.c
@@ -281,7 +281,7 @@ static int MainSeq_setActive(BPy_MainSeq *self, PyObject *value)
{
switch (self->type) {
case ID_SCE:
- if (!Scene_CheckPyObject(value)) {
+ if (!BPy_Scene_Check(value)) {
return EXPP_ReturnIntError(PyExc_TypeError,
"Must be a scene" );
} else {
@@ -303,7 +303,7 @@ static int MainSeq_setActive(BPy_MainSeq *self, PyObject *value)
return 0;
case ID_IM:
- if (!Image_CheckPyObject(value)) {
+ if (!BPy_Image_Check(value)) {
return EXPP_ReturnIntError(PyExc_TypeError,
"Must be a scene" );
} else {