Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/object.cc
| Show First 20 Lines • Show All 5,823 Lines • ▼ Show 20 Lines | void BKE_object_modifiers_lib_link_common(void *userData, | ||||
| } | } | ||||
| } | } | ||||
| void BKE_object_replace_data_on_shallow_copy(Object *ob, ID *new_data) | void BKE_object_replace_data_on_shallow_copy(Object *ob, ID *new_data) | ||||
| { | { | ||||
| ob->type = BKE_object_obdata_to_type(new_data); | ob->type = BKE_object_obdata_to_type(new_data); | ||||
| ob->data = (void *)new_data; | ob->data = (void *)new_data; | ||||
| ob->runtime.geometry_set_eval = nullptr; | ob->runtime.geometry_set_eval = nullptr; | ||||
| ob->runtime.data_eval = nullptr; | ob->runtime.data_eval = new_data; | ||||
| if (ob->runtime.bb != nullptr) { | if (ob->runtime.bb != nullptr) { | ||||
| ob->runtime.bb->flag |= BOUNDBOX_DIRTY; | ob->runtime.bb->flag |= BOUNDBOX_DIRTY; | ||||
| } | } | ||||
| ob->id.py_instance = nullptr; | ob->id.py_instance = nullptr; | ||||
| } | } | ||||
| bool BKE_object_supports_material_slots(struct Object *ob) | bool BKE_object_supports_material_slots(struct Object *ob) | ||||
| { | { | ||||
| Show All 11 Lines | |||||