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:
authorCampbell Barton <ideasman42@gmail.com>2008-04-19 15:23:50 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-04-19 15:23:50 +0400
commit8a888dbdc794668d3043b075ae6d7a5d7d0a2c0e (patch)
tree68e634ce587585c7129f9d1e09278cf7675a2202 /source/blender/include/blendef.h
parentd00a0e56f69c00748c635bb06860041a8726d9fd (diff)
bugfix for [#8256] Creating proxy from linked mesh object removes materials
Diffstat (limited to 'source/blender/include/blendef.h')
-rw-r--r--source/blender/include/blendef.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/include/blendef.h b/source/blender/include/blendef.h
index beabe2df4b0..93e3aaf03dd 100644
--- a/source/blender/include/blendef.h
+++ b/source/blender/include/blendef.h
@@ -101,6 +101,7 @@
#define LASTBASE G.scene->base.last
#define BASACT (G.scene->basact)
#define OBACT (BASACT? BASACT->object: 0)
+#define OB_SUPPORT_MATERIAL(ob) ELEM5(ob->type, OB_MESH, OB_CURVE, OB_SURF, OB_FONT, OB_MBALL)
#define ID_NEW(a) if( (a) && (a)->id.newid ) (a)= (void *)(a)->id.newid
#define ID_NEW_US(a) if( (a)->id.newid) {(a)= (void *)(a)->id.newid; (a)->id.us++;}
#define ID_NEW_US2(a) if( ((ID *)a)->newid) {(a)= ((ID *)a)->newid; ((ID *)a)->us++;}