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/Object.c')
-rw-r--r--source/blender/python/api2_2x/Object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Object.c b/source/blender/python/api2_2x/Object.c
index ac31b7ad195..8448779ea7b 100644
--- a/source/blender/python/api2_2x/Object.c
+++ b/source/blender/python/api2_2x/Object.c
@@ -305,7 +305,7 @@ PyObject *M_Object_New(PyObject *self, PyObject *args)
Mat4One(object->obmat);
object->dt = OB_SHADED; // drawtype
- if (U.flag & MAT_ON_OB)
+ if (U.flag & USER_MAT_ON_OB)
{
object->colbits = -1;
}