Skip to content

Commit

Permalink
Cleanup, make some useful warnings visible.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Oct 3, 2024
1 parent 8020401 commit b1b0368
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
13 changes: 5 additions & 8 deletions Source/CesiumRuntime/Private/CesiumGltfComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1766,9 +1766,10 @@ static void loadIndexedPrimitive(
} else {
UE_LOG(
LogCesium,
VeryVerbose,
Warning,
TEXT(
"Skip loading primitive due to invalid component type in its index accessor."));
"Ignoring a glTF primitive because the componentType (%d) of its indices is not supported."),
indexAccessorGltf.componentType);
}
}

Expand Down Expand Up @@ -2132,8 +2133,8 @@ void applyGltfUpAxisTransform(const Model& model, glm::dmat4x4& rootTransform) {
} else {
UE_LOG(
LogCesium,
VeryVerbose,
TEXT("Unknown gltfUpAxis value: {}"),
Warning,
TEXT("Ignoring unknown gltfUpAxis value: {}"),
gltfUpAxisValue);
}
}
Expand Down Expand Up @@ -3258,10 +3259,6 @@ UCesiumGltfComponent::UCesiumGltfComponent() : USceneComponent() {
PrimaryComponentTick.bCanEverTick = false;
}

UCesiumGltfComponent::~UCesiumGltfComponent() {
UE_LOG(LogCesium, VeryVerbose, TEXT("~UCesiumGltfComponent"));
}

void UCesiumGltfComponent::UpdateTransformFromCesium(
const glm::dmat4& cesiumToUnrealTransform) {
for (USceneComponent* pSceneComponent : this->GetAttachChildren()) {
Expand Down
1 change: 0 additions & 1 deletion Source/CesiumRuntime/Private/CesiumGltfComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ class UCesiumGltfComponent : public USceneComponent {
bool createNavCollision);

UCesiumGltfComponent();
virtual ~UCesiumGltfComponent();

UPROPERTY(EditAnywhere, Category = "Cesium")
UMaterialInterface* BaseMaterial = nullptr;
Expand Down
4 changes: 2 additions & 2 deletions Source/CesiumRuntime/Private/CesiumGltfTextures.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ struct Model;
class CesiumGltfTextures {
public:
/**
* Creates all of the textures that are required by the given glTF, and adds
* `ExtensionUnrealTexture` to each.
* Creates all of the texture resources that are required by the given glTF,
* and adds `ExtensionImageCesiumUnreal` to each.
*/
static CesiumAsync::Future<void> createInWorkerThread(
const CesiumAsync::AsyncSystem& asyncSystem,
Expand Down

0 comments on commit b1b0368

Please sign in to comment.