Refactor: Depsgraph: simplify query API further
* Remove `DEG_get_evaluated_object` in favor of `DEG_get_evaluated`. * Remove `DEG_is_original_object` in favor of `DEG_is_original`. * Remove `DEG_is_evaluated_object` in favor of `DEG_is_evaluated`. Pull Request: https://projects.blender.org/blender/blender/pulls/138317
This commit is contained in:
@@ -528,7 +528,7 @@ static wmOperatorStatus curves_convert_from_particle_system_exec(bContext *C, wm
|
||||
if (psys_orig == nullptr) {
|
||||
return OPERATOR_CANCELLED;
|
||||
}
|
||||
Object *ob_from_eval = DEG_get_evaluated_object(&depsgraph, ob_from_orig);
|
||||
Object *ob_from_eval = DEG_get_evaluated(&depsgraph, ob_from_orig);
|
||||
ParticleSystem *psys_eval = nullptr;
|
||||
LISTBASE_FOREACH (ModifierData *, md, &ob_from_eval->modifiers) {
|
||||
if (md->type != eModifierType_ParticleSystem) {
|
||||
|
||||
Reference in New Issue
Block a user