-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added rhi check for unsupported platforms
On startup, the Rive plugin will now disable the RHI tech preview if on Mac platforms or UE5.3 on Windows. Diffs= 479609dac1 fix: added rhi check for unsupported platforms (#9073) Co-authored-by: Tod-Rive <[email protected]>
- Loading branch information
Showing
3 changed files
with
46 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
5153dac481f44db86b07528b35d31051b4118fff | ||
479609dac10805641b9d66f8a98f3463ca30d033 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,34 @@ | ||
// Fill out your copyright notice in the Description page of Project Settings. | ||
// Copyright Rive, Inc. All rights reserved. | ||
|
||
#include "RiveRendererSettings.h" | ||
|
||
URiveRendererSettings::URiveRendererSettings() : bEnableRHITechPreview(false) {} | ||
|
||
#if WITH_EDITOR | ||
void URiveRendererSettings::PostInitProperties() | ||
{ | ||
Super::PostInitProperties(); | ||
|
||
if (!bCanUseRHI) | ||
{ | ||
bEnableRHITechPreview = false; | ||
SaveConfig(); | ||
} | ||
} | ||
|
||
bool URiveRendererSettings::CanEditChange(const FProperty* InProperty) const | ||
{ | ||
bool bParentValue = Super::CanEditChange(InProperty); | ||
|
||
if (InProperty && InProperty->GetFName() == | ||
GET_MEMBER_NAME_CHECKED(URiveRendererSettings, | ||
bEnableRHITechPreview)) | ||
{ | ||
// Only allow editing if running on Windows AND UE 5.4+ | ||
return bParentValue && bCanUseRHI; | ||
} | ||
|
||
return bParentValue; | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters