Changeset View
Changeset View
Standalone View
Standalone View
source/blender/depsgraph/intern/depsgraph.cc
| Show First 20 Lines • Show All 262 Lines • ▼ Show 20 Lines | if ((id_orig->tag & LIB_TAG_COPIED_ON_WRITE) == 0) { | ||||
| /* TODO(sergey): This is nice sanity check to have, but it fails | /* TODO(sergey): This is nice sanity check to have, but it fails | ||||
| * in following situations: | * in following situations: | ||||
| * | * | ||||
| * - Material has link to texture, which is not needed by new | * - Material has link to texture, which is not needed by new | ||||
| * shading system and hence can be ignored at construction. | * shading system and hence can be ignored at construction. | ||||
| * - Object or mesh has material at a slot which is not used (for | * - Object or mesh has material at a slot which is not used (for | ||||
| * example, object has material slot by materials are set to | * example, object has material slot by materials are set to | ||||
| * object data). */ | * object data). */ | ||||
| // BLI_assert(!"Request for non-existing copy-on-write ID"); | // BLI_assert_msg(0, "Request for non-existing copy-on-write ID"); | ||||
| } | } | ||||
| return (ID *)id_orig; | return (ID *)id_orig; | ||||
| } | } | ||||
| return id_node->id_cow; | return id_node->id_cow; | ||||
| } | } | ||||
| } // namespace blender::deg | } // namespace blender::deg | ||||
| ▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines | |||||