# Blueprint CDO contains removed component from parent class

**URL:** <https://forums.unrealengine.com/t/blueprint-cdo-contains-removed-component-from-parent-class/315750>\
**Category:** Blueprint\
**Tags:** inheritance, cdo, unreal-engine, bug-report, Blueprint, question\
**Created:** [April 20, 2015, 8:24pm UTC](https://forums.unrealengine.com/t/blueprint-cdo-contains-removed-component-from-parent-class/315750 "2015-04-20T20:24:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrainDx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BrainDx](https://forums.unrealengine.com/u/BrainDx)\
**Post date:** [April 20, 2015, 8:24pm UTC](https://forums.unrealengine.com/t/blueprint-cdo-contains-removed-component-from-parent-class/315750/1 "2015-04-20T20:24:42Z")

</div>

We have a bunch of blueprint classes derived from a single C++ class. We also have some code that inspects CDOs in editor in order to check what components a given class uses.

It appears that if a component is removed from C++ class, CDOs for all of blueprints remain unchanged and still contain component that was removed even though instances of blueprint do not. If I manually recompile and save each of these blueprints, CDO is successfully updated.

How can I fix this? Can I at least force these blueprints to regenerate their CDO from code? How is this best accomplished?

---

<div class="post-metadata">

**Author:** ![BrainDx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BrainDx](https://forums.unrealengine.com/u/BrainDx)\
**Post date:** [April 21, 2015, 4:28am UTC](https://forums.unrealengine.com/t/blueprint-cdo-contains-removed-component-from-parent-class/315750/2 "2015-04-21T04:28:33Z")

</div>

I’ve worked around this by doing a FKismetEditorUtilities::CompileBlueprint( blueprint ); before I inspect particular blueprint’s CDO, but this should really be invalidated in first place by code change to parent class. It’s not greatest from a performance point of view to have to recompile blueprint so frequently just because I can’t trust that it’s CDO is up to date.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [April 28, 2015, 8:19pm UTC](https://forums.unrealengine.com/t/blueprint-cdo-contains-removed-component-from-parent-class/315750/3 "2015-04-28T20:19:56Z")

</div>

Hi BrainDx,

Thanks for your report! We’ve brought this to attention of developers who are investigating possible causes (UE-14592). I’ll let you know as soon as I see an update on issue.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [May 12, 2015, 5:40pm UTC](https://forums.unrealengine.com/t/blueprint-cdo-contains-removed-component-from-parent-class/315750/4 "2015-05-12T17:40:33Z")

</div>

Hi BrainDx,

Can you give this a try in 4.8 Preview 2? This should be fixed internally, and I believe fix made it into Preview build. Let me know if you still experience this issue. Thanks!

---

<div class="post-metadata">

**Author:** ![BrainDx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BrainDx](https://forums.unrealengine.com/u/BrainDx)\
**Post date:** [June 11, 2015, 3:54pm UTC](https://forums.unrealengine.com/t/blueprint-cdo-contains-removed-component-from-parent-class/315750/5 "2015-06-11T15:54:15Z")

</div>

Just tried this in 4.8.0. Appears to have been fixed.

---

<div class="post-metadata">

**Author:** ![phantasie17\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@phantasie17\_1](https://forums.unrealengine.com/u/phantasie17_1)\
**Post date:** [September 10, 2015, 12:14am UTC](https://forums.unrealengine.com/t/blueprint-cdo-contains-removed-component-from-parent-class/315750/6 "2015-09-10T00:14:17Z")

</div>

As mentioned in [this post,](https://answers.unrealengine.com/questions/299842/re-parenting-a-class-and-deleting-components-crash.html) I believe we are experiencing this issue here. We are on 4.8, and upgrading to a newer version of unreal isnt possible at this time.

Is there any work around, or a specific CL I could pull to get this fix?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [September 10, 2015, 6:53pm UTC](https://forums.unrealengine.com/t/blueprint-cdo-contains-removed-component-from-parent-class/315750/7 "2015-09-10T18:53:56Z")

</div>

Hi phantasie17,

I think your issue may actually be a little bit different from issue described here. I moved your post into Bug Reports section, and we will have someone take a look at what is going on.
