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

71 Modified Paths:

/source/blender/blenkernel/intern/action.c (+4, -4) (Diff)
/source/blender/blenkernel/intern/armature.c (+4, -4) (Diff)
/source/blender/blenkernel/intern/armature_update.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/bpath.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/brush.c (+4, -4) (Diff)
/source/blender/blenkernel/intern/camera.c (+4, -4) (Diff)
/source/blender/blenkernel/intern/constraint.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/curve.c (+4, -4) (Diff)
/source/blender/blenkernel/intern/group.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/image.c (+8, -8) (Diff)
/source/blender/blenkernel/intern/key.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/lamp.c (+4, -4) (Diff)
/source/blender/blenkernel/intern/lattice.c (+4, -4) (Diff)
/source/blender/blenkernel/intern/library.c (+6, -6) (Diff)
/source/blender/blenkernel/intern/library_query.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/linestyle.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/mask.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/material.c (+16, -16) (Diff)
/source/blender/blenkernel/intern/mball.c (+4, -4) (Diff)
/source/blender/blenkernel/intern/mesh.c (+4, -4) (Diff)
/source/blender/blenkernel/intern/modifier.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/node.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/object.c (+11, -11) (Diff)
/source/blender/blenkernel/intern/object_update.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/packedFile.c (+3, -3) (Diff)
/source/blender/blenkernel/intern/particle.c (+4, -4) (Diff)
/source/blender/blenkernel/intern/speaker.c (+4, -4) (Diff)
/source/blender/blenkernel/intern/text.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/texture.c (+16, -16) (Diff)
/source/blender/blenkernel/intern/world.c (+4, -4) (Diff)
/source/blender/editors/animation/anim_filter.c (+1, -1) (Diff)
/source/blender/editors/animation/keyframes_draw.c (+3, -3) (Diff)
/source/blender/editors/armature/pose_edit.c (+1, -1) (Diff)
/source/blender/editors/armature/pose_lib.c (+2, -2) (Diff)
/source/blender/editors/interface/interface_eyedropper.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_ops.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_regions.c (+1, -1) (Diff)
/source/blender/editors/interface/interface_templates.c (+5, -5) (Diff)
/source/blender/editors/mesh/editmesh_tools.c (+1, -1) (Diff)
/source/blender/editors/mesh/mesh_data.c (+3, -3) (Diff)
/source/blender/editors/object/object_add.c (+5, -4) (Diff)
/source/blender/editors/object/object_constraint.c (+1, -1) (Diff)
/source/blender/editors/object/object_data_transfer.c (+3, -3) (Diff)
/source/blender/editors/object/object_edit.c (+6, -6) (Diff)
/source/blender/editors/object/object_modifier.c (+2, -2) (Diff)
/source/blender/editors/object/object_relations.c (+13, -13) (Diff)
/source/blender/editors/object/object_shapekey.c (+5, -4) (Diff)
/source/blender/editors/object/object_transform.c (+3, -3) (Diff)
/source/blender/editors/object/object_vgroup.c (+12, -11) (Diff)
/source/blender/editors/physics/particle_edit.c (+1, -1) (Diff)
/source/blender/editors/physics/particle_object.c (+2, -2) (Diff)
/source/blender/editors/screen/screen_ops.c (+7, -7) (Diff)
/source/blender/editors/sculpt_paint/paint_image.c (+1, -1) (Diff)
/source/blender/editors/sculpt_paint/paint_vertex.c (+2, -2) (Diff)
/source/blender/editors/space_logic/logic_ops.c (+3, -3) (Diff)
/source/blender/editors/space_outliner/outliner_draw.c (+7, -6) (Diff)
/source/blender/editors/space_outliner/outliner_edit.c (+5, -5) (Diff)
/source/blender/editors/space_outliner/outliner_tools.c (+1, -1) (Diff)
/source/blender/editors/space_outliner/outliner_tree.c (+1, -1) (Diff)
/source/blender/editors/space_text/text_ops.c (+3, -3) (Diff)
/source/blender/editors/space_view3d/drawobject.c (+2, -2) (Diff)
/source/blender/editors/space_view3d/view3d_edit.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/view3d_fly.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/view3d_view.c (+1, -1) (Diff)
/source/blender/editors/space_view3d/view3d_walk.c (+1, -1) (Diff)
/source/blender/editors/transform/transform_conversions.c (+1, -1) (Diff)
/source/blender/editors/util/ed_util.c (+1, -1) (Diff)
/source/blender/makesdna/DNA_ID.h (+2, -0) (Diff)
/source/blender/makesrna/intern/rna_access.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_object.c (+2, -2) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+2, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021