Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/mball.c
| Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Lines | |||||
| #include "BKE_curve.h" | #include "BKE_curve.h" | ||||
| #include "BKE_scene.h" | #include "BKE_scene.h" | ||||
| #include "BKE_library.h" | #include "BKE_library.h" | ||||
| #include "BKE_displist.h" | #include "BKE_displist.h" | ||||
| #include "BKE_mball.h" | #include "BKE_mball.h" | ||||
| #include "BKE_object.h" | #include "BKE_object.h" | ||||
| #include "BKE_material.h" | #include "BKE_material.h" | ||||
| #include "DEG_depsgraph.h" | |||||
| /* Functions */ | /* Functions */ | ||||
| /** Free (or release) any data used by this mball (does not free the mball itself). */ | /** Free (or release) any data used by this mball (does not free the mball itself). */ | ||||
| void BKE_mball_free(MetaBall *mb) | void BKE_mball_free(MetaBall *mb) | ||||
| { | { | ||||
| BKE_animdata_free((ID *)mb, false); | BKE_animdata_free((ID *)mb, false); | ||||
| BKE_mball_batch_cache_free(mb); | BKE_mball_batch_cache_free(mb); | ||||
| ▲ Show 20 Lines • Show All 316 Lines • ▼ Show 20 Lines | if (ob->type == OB_MBALL) { | ||||
| if (STREQ(obname, basisname)) { | if (STREQ(obname, basisname)) { | ||||
| MetaBall *mb = ob->data; | MetaBall *mb = ob->data; | ||||
| /* Copy properties from selected/edited metaball */ | /* Copy properties from selected/edited metaball */ | ||||
| mb->wiresize = active_mball->wiresize; | mb->wiresize = active_mball->wiresize; | ||||
| mb->rendersize = active_mball->rendersize; | mb->rendersize = active_mball->rendersize; | ||||
| mb->thresh = active_mball->thresh; | mb->thresh = active_mball->thresh; | ||||
| mb->flag = active_mball->flag; | mb->flag = active_mball->flag; | ||||
| DEG_id_tag_update(&mb->id, 0); | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| /** \brief This function finds basic MetaBall. | /** \brief This function finds basic MetaBall. | ||||
| * | * | ||||
| ▲ Show 20 Lines • Show All 239 Lines • Show Last 20 Lines | |||||