@@ -431,13 +431,7 @@ void BL_Action::Update(float curtime, bool applyToObject)
431431 m_localframe);
432432
433433 if (m_obj->GetGameObjectType () == SCA_IObject::OBJ_ARMATURE) {
434- if (ob->gameflag & OB_OVERLAY_COLLECTION) {
435- scene->AppendToIdsToUpdateInOverlayPass (&ob->id , ID_RECALC_TRANSFORM);
436- }
437- else {
438- scene->AppendToIdsToUpdateInAllRenderPasses (&ob->id , ID_RECALC_TRANSFORM);
439- }
440-
434+ scene->AppendToIdsToUpdate (&ob->id , ID_RECALC_TRANSFORM, ob->gameflag & OB_OVERLAY_COLLECTION);
441435 BL_ArmatureObject *obj = (BL_ArmatureObject *)m_obj;
442436
443437 if (m_layer_weight >= 0 )
@@ -480,12 +474,8 @@ void BL_Action::Update(float curtime, bool applyToObject)
480474 bool isRightAction = ActionMatchesName (m_action, md->name , ACT_TYPE_MODIFIER);
481475 // TODO: We need to find the good notifier per action
482476 if (isRightAction && !BKE_modifier_is_non_geometrical (md)) {
483- if (ob->gameflag & OB_OVERLAY_COLLECTION) {
484- scene->AppendToIdsToUpdateInOverlayPass (&ob->id , ID_RECALC_GEOMETRY);
485- }
486- else {
487- scene->AppendToIdsToUpdateInAllRenderPasses (&ob->id , ID_RECALC_GEOMETRY);
488- }
477+ scene->AppendToIdsToUpdate (
478+ &ob->id , ID_RECALC_GEOMETRY, ob->gameflag & OB_OVERLAY_COLLECTION);
489479 PointerRNA ptrrna = RNA_id_pointer_create (&ob->id );
490480 const blender::animrig::slot_handle_t slot_handle = blender::animrig::first_slot_handle (
491481 *m_action);
@@ -503,12 +493,8 @@ void BL_Action::Update(float curtime, bool applyToObject)
503493 // the Color ones)
504494 bool isRightAction = ActionMatchesName (m_action, gpmd->name , ACT_TYPE_GPMODIFIER);
505495 if (isRightAction) {
506- if (ob->gameflag & OB_OVERLAY_COLLECTION) {
507- scene->AppendToIdsToUpdateInOverlayPass (&ob->id , ID_RECALC_GEOMETRY);
508- }
509- else {
510- scene->AppendToIdsToUpdateInAllRenderPasses (&ob->id , ID_RECALC_GEOMETRY);
511- }
496+ scene->AppendToIdsToUpdate (
497+ &ob->id , ID_RECALC_GEOMETRY, ob->gameflag & OB_OVERLAY_COLLECTION);
512498 PointerRNA ptrrna = RNA_id_pointer_create (&ob->id );
513499 const blender::animrig::slot_handle_t slot_handle = blender::animrig::first_slot_handle (
514500 *m_action);
@@ -526,12 +512,8 @@ void BL_Action::Update(float curtime, bool applyToObject)
526512 if (!scene->OrigObCanBeTransformedInRealtime (ob)) {
527513 break ;
528514 }
529- if (ob->gameflag & OB_OVERLAY_COLLECTION) {
530- scene->AppendToIdsToUpdateInOverlayPass (&ob->id , ID_RECALC_TRANSFORM);
531- }
532- else {
533- scene->AppendToIdsToUpdateInAllRenderPasses (&ob->id , ID_RECALC_TRANSFORM);
534- }
515+ scene->AppendToIdsToUpdate (
516+ &ob->id , ID_RECALC_TRANSFORM, ob->gameflag & OB_OVERLAY_COLLECTION);
535517 PointerRNA ptrrna = RNA_id_pointer_create (&ob->id );
536518 const blender::animrig::slot_handle_t slot_handle = blender::animrig::first_slot_handle (
537519 *m_action);
@@ -554,12 +536,8 @@ void BL_Action::Update(float curtime, bool applyToObject)
554536 continue ;
555537 }
556538 if (ActionMatchesName (m_action, prop->name , ACT_TYPE_IDPROP)) {
557- if (ob->gameflag & OB_OVERLAY_COLLECTION) {
558- scene->AppendToIdsToUpdateInOverlayPass (&ob->id , ID_RECALC_TRANSFORM);
559- }
560- else {
561- scene->AppendToIdsToUpdateInAllRenderPasses (&ob->id , ID_RECALC_TRANSFORM);
562- }
539+ scene->AppendToIdsToUpdate (
540+ &ob->id , ID_RECALC_TRANSFORM, ob->gameflag & OB_OVERLAY_COLLECTION);
563541 PointerRNA ptrrna = RNA_id_pointer_create (&ob->id );
564542 const blender::animrig::slot_handle_t slot_handle =
565543 blender::animrig::first_slot_handle (*m_action);
@@ -588,7 +566,7 @@ void BL_Action::Update(float curtime, bool applyToObject)
588566 }
589567 }
590568 if (isRightAction) {
591- scene->AppendToIdsToUpdateInAllRenderPasses (&nodetree->id , (IDRecalcFlag)0 );
569+ scene->AppendToIdsToUpdate (&nodetree->id , (IDRecalcFlag)0 , false );
592570 PointerRNA ptrrna = RNA_id_pointer_create (&nodetree->id );
593571 const blender::animrig::slot_handle_t slot_handle = blender::animrig::first_slot_handle (
594572 *m_action);
@@ -620,7 +598,7 @@ void BL_Action::Update(float curtime, bool applyToObject)
620598 }
621599
622600 if (play_normal_key_action || play_nla_key_action) {
623- scene->AppendToIdsToUpdateInAllRenderPasses (&me->id , ID_RECALC_GEOMETRY);
601+ scene->AppendToIdsToUpdate (&me->id , ID_RECALC_GEOMETRY, false );
624602 Key *key = me->key ;
625603
626604 PointerRNA ptrrna = RNA_id_pointer_create (&key->id );
0 commit comments