Blender Git Commit Log

Git Commits -> Revision d231260

Revision d231260 by Bastien Montagne (master)
July 6, 2016, 12:11 (GMT)
Replace of (id->lib != NULL) check by meaningful macro.

Idea is to replace hard-to-track (id->lib != NULL) 'is linked datablock' check everywhere in Blender
by a macro doing the same thing. This will allow to easily spot those checks in future, and more importantly,
to easily change it (see work done in asset-engine branch).

Note: did not touch to readfile.c, since there most of the time 'id->lib' check actually concerns the pointer,
and not a check whether ID is linked or not. Will have a closer look at it later.

Reviewers: campbellbarton, brecht, sergey

Differential Revision: https://developer.blender.org/D2082

Commit Details:

Full Hash: d2312602125a452e6562a76ab91779943c67396d
Parent Commit: b98b331
Lines Changed: +241, -235

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2021