Skip to content

Commit

Permalink
[unreal]去掉ScalarRegister的使用
Browse files Browse the repository at this point in the history
  • Loading branch information
chexiongsheng committed Nov 12, 2024
1 parent f4b50f3 commit 26b22df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
8 changes: 2 additions & 6 deletions unreal/Puerts/Source/JsEnv/Private/Gen/FTransform_Wrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ struct AutoRegisterForFTransform
.Method("BlendWith", MakeFunction(&FTransform::BlendWith))
.Method("op_Addition", MakeFunction(&FTransform::operator+))
.Method("op_Multiply",
CombineOverloads( // MakeOverload(FTransform(FTransform::*)(const ScalarRegister&) const,
// &FTransform::operator*),
MakeOverload(FTransform(FTransform::*)(const FTransform&) const, &FTransform::operator*),
CombineOverloads(MakeOverload(FTransform(FTransform::*)(const FTransform&) const, &FTransform::operator*),
MakeOverload(FTransform(FTransform::*)(const FQuat&) const, &FTransform::operator*)))
.Function("AnyHasNegativeScale", MakeFunction(&FTransform::AnyHasNegativeScale))
.Method("RemoveScaling", MakeFunction(&FTransform::RemoveScaling))
Expand Down Expand Up @@ -109,9 +107,7 @@ struct AutoRegisterForFTransform
.Method("SetScale3D", MakeFunction(&FTransform::SetScale3D))
.Method("CopyScale3D", MakeFunction(&FTransform::CopyScale3D))
.Method("SetTranslationAndScale3D", MakeFunction(&FTransform::SetTranslationAndScale3D))
.Method("Accumulate",
CombineOverloads(MakeOverload(void (FTransform::*)(const FTransform&), &FTransform::Accumulate),
MakeOverload(void (FTransform::*)(const FTransform&, const ScalarRegister&), &FTransform::Accumulate)))
.Method("Accumulate", SelectFunction(void (FTransform::*)(const FTransform&), &FTransform::Accumulate))
.Method("NormalizeRotation", MakeFunction(&FTransform::NormalizeRotation))
.Method("IsRotationNormalized", MakeFunction(&FTransform::IsRotationNormalized))
.Method("GetRotation", MakeFunction(&FTransform::GetRotation))
Expand Down
1 change: 0 additions & 1 deletion unreal/Puerts/Source/JsEnv/Private/Gen/UsingTypeDecl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ UsingUStruct(FQuat);
UsingUStruct(FRotator);
UsingUStruct(FTransform);
UsingUStruct(FVector4);
UsingCppType(ScalarRegister);
UsingUStruct(FPlane);
UsingUStruct(FFloat16Color);
UsingUStruct(FMatrix);
Expand Down

0 comments on commit 26b22df

Please sign in to comment.