Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/lib_remap.c
| Show First 20 Lines • Show All 339 Lines • ▼ Show 20 Lines | if (ob->data == new_id) { | ||||
| BKE_modifiers_test_object(ob); | BKE_modifiers_test_object(ob); | ||||
| BKE_object_materials_test(bmain, ob, new_id); | BKE_object_materials_test(bmain, ob, new_id); | ||||
| } | } | ||||
| } | } | ||||
| static void libblock_remap_data_postprocess_nodetree_update(Main *bmain, ID *new_id) | static void libblock_remap_data_postprocess_nodetree_update(Main *bmain, ID *new_id) | ||||
| { | { | ||||
| /* Update all group nodes using a node group. */ | /* Update all group nodes using a node group. */ | ||||
| ntreeUpdateAllUsers(bmain, new_id); | ntreeUpdateAllUsers(bmain, new_id, 0); | ||||
| } | } | ||||
| /** | /** | ||||
| * Execute the 'data' part of the remapping (that is, all ID pointers from other ID data-blocks). | * Execute the 'data' part of the remapping (that is, all ID pointers from other ID data-blocks). | ||||
| * | * | ||||
| * Behavior differs depending on whether given \a id is NULL or not: | * Behavior differs depending on whether given \a id is NULL or not: | ||||
| * - \a id NULL: \a old_id must be non-NULL, \a new_id may be NULL (unlinking \a old_id) or not | * - \a id NULL: \a old_id must be non-NULL, \a new_id may be NULL (unlinking \a old_id) or not | ||||
| * (remapping \a old_id to \a new_id). | * (remapping \a old_id to \a new_id). | ||||
| ▲ Show 20 Lines • Show All 407 Lines • Show Last 20 Lines | |||||