Skip to content

Conversation

@jayhf
Copy link

@jayhf jayhf commented Jan 7, 2025

Fixes several compiler errors (and warnings treated as errors) I encountered when using Unreal 5.4 on Linux

if (const auto ThisShared = ThisWeak.Pin())
{
FRealtimeMeshAccessContext AccessContext(ThisShared.ToSharedRef());
FRealtimeMeshComplexGeometry ComplexGeometry;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shadowed another variable of the same name

virtual void ProcessEndOfFrameUpdates() override;

friend class URealtimeMeshSimple;
friend class ::URealtimeMeshSimple;
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explicit namespace is necessary to prevent this from being treated as a different type

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also fixed in https://github.com/TriAxis-Games/RealtimeMeshComponent/pull/292/files, but I think it's better to fix the friend declaration

#endif
}
/*Batcher.QueueUpdateRequest(VertexBufferRHI, UpdateData->GetNumElements() > 0? UpdateData->GetBuffer() : nullptr);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Starting a block comment is not allowed in a block comment

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#include "ComponentAssetBroker.h"
#include "EngineUtils.h"
#include "IAssetTools.h"
#include "Editor.h"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing include, as reported here: #286 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant