From fb25d2b71447e07769a5b0c2e573ff526d058ca3 Mon Sep 17 00:00:00 2001 From: Kah Wei Date: Tue, 22 Nov 2022 19:44:07 +0800 Subject: [PATCH] Fixed compilation error in Editor.h++ --- SHADE_Managed/src/Editor/Editor.h++ | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SHADE_Managed/src/Editor/Editor.h++ b/SHADE_Managed/src/Editor/Editor.h++ index 352431fd..37d5c27d 100644 --- a/SHADE_Managed/src/Editor/Editor.h++ +++ b/SHADE_Managed/src/Editor/Editor.h++ @@ -207,7 +207,7 @@ namespace SHADE bool Editor::renderFieldEditorInternal(const std::string& fieldName, interior_ptr managedValPtr, EditorFieldFunc, bool* isHovered, RangeAttribute^) { uint32_t assetId = managedValPtr->NativeAssetID; - if (SHEditorUI::InputAssetField(fieldName, assetId, AssetType::FONT, isHovered, !(*managedValPtr))) + if (SHEditorUI::InputAssetField(fieldName, assetId, AssetType::FONT, isHovered)) { *managedValPtr = FontAsset(assetId); return true; @@ -219,7 +219,7 @@ namespace SHADE bool Editor::renderFieldEditorInternal(const std::string& fieldName, interior_ptr managedValPtr, EditorFieldFunc, bool* isHovered, RangeAttribute^) { uint32_t assetId = managedValPtr->NativeAssetID; - if (SHEditorUI::InputAssetField(fieldName, assetId, AssetType::MESH, isHovered, !(*managedValPtr))) + if (SHEditorUI::InputAssetField(fieldName, assetId, AssetType::MESH, isHovered)) { *managedValPtr = MeshAsset(assetId); return true; @@ -231,7 +231,7 @@ namespace SHADE bool Editor::renderFieldEditorInternal(const std::string& fieldName, interior_ptr managedValPtr, EditorFieldFunc, bool* isHovered, RangeAttribute^) { uint32_t assetId = managedValPtr->NativeAssetID; - if (SHEditorUI::InputAssetField(fieldName, assetId, AssetType::MATERIAL, isHovered, !(*managedValPtr))) + if (SHEditorUI::InputAssetField(fieldName, assetId, AssetType::MATERIAL, isHovered)) { *managedValPtr = MaterialAsset(assetId); return true; -- 2.40.1