Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/physics/particle_object.c
| Show First 20 Lines • Show All 1,197 Lines • ▼ Show 20 Lines | for (psys = psys_start, psys_from = PSYS_FROM_FIRST, i = 0; psys; | ||||
| /* tag for recalc */ | /* tag for recalc */ | ||||
| // psys->recalc |= ID_RECALC_PSYS_RESET; | // psys->recalc |= ID_RECALC_PSYS_RESET; | ||||
| } | } | ||||
| #undef PSYS_FROM_FIRST | #undef PSYS_FROM_FIRST | ||||
| #undef PSYS_FROM_NEXT | #undef PSYS_FROM_NEXT | ||||
| if (duplicate_settings) { | |||||
| DEG_relations_tag_update(bmain); | |||||
| } | |||||
| DEG_id_tag_update(&ob_to->id, ID_RECALC_GEOMETRY); | DEG_id_tag_update(&ob_to->id, ID_RECALC_GEOMETRY); | ||||
| WM_main_add_notifier(NC_OBJECT | ND_PARTICLE | NA_EDITED, ob_to); | WM_main_add_notifier(NC_OBJECT | ND_PARTICLE | NA_EDITED, ob_to); | ||||
| return true; | return true; | ||||
| } | } | ||||
| static bool copy_particle_systems_poll(bContext *C) | static bool copy_particle_systems_poll(bContext *C) | ||||
| { | { | ||||
| Object *ob; | Object *ob; | ||||
| ▲ Show 20 Lines • Show All 140 Lines • Show Last 20 Lines | |||||