diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-10 19:24:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-10 19:24:05 +0400 |
commit | dbd300910815692294e8919b6ea21e934731d2c8 (patch) | |
tree | 3ee917259147fc4d5fdd5140f7fd48ce85683de0 /source/blender/blenkernel/intern/material.c | |
parent | 1c11e40cb7ed708228b70284a62be34916ec1b4d (diff) |
- background job style cleanup.
- assert if material assignment is called with lib. (so the callers can be corrected).
- correct example docs
Diffstat (limited to 'source/blender/blenkernel/intern/material.c')
-rw-r--r-- | source/blender/blenkernel/intern/material.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/material.c b/source/blender/blenkernel/intern/material.c index daa665f7183..36e386aeabe 100644 --- a/source/blender/blenkernel/intern/material.c +++ b/source/blender/blenkernel/intern/material.c @@ -688,6 +688,7 @@ void assign_material(Object *ob, Material *ma, int act) if(act<1) act= 1; /* prevent crashing when using accidentally */ + BLI_assert(ob->id.lib != NULL); if(ob->id.lib) return; /* test arraylens */ |