I noticed that some struct are not always copied in python. For example, FBox is not copied if !a_src.IsValid and !a_dst.IsValid even if Min and Max are different. Another example is FJsonObjectWrapper, if a_src.JsonString and a_dst.JsonString are empty the struct is not copied even if the JsonObject are different.
In PyConversion.cpp, NativizeProperty_Direct will not call CopyScriptStruct if Identical returns true.
In the case of FBox, if the boxes are well initialized then IsValid are true.
In the case of FJsonObjectWrapper, one way to properly do the copy is to provide a FJsonObjectWrapper::operator== with set WithIdenticalViaEquality = true.
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-191455 in the post.
0 |
Component | UE - Editor - Workflow Systems |
---|---|
Affects Versions | 5.2 |
Created | Jul 28, 2023 |
---|---|
Updated | Jan 20, 2024 |