From c63f2e0ab3a20087a0e4a34d45de3bed805e5919 Mon Sep 17 00:00:00 2001 From: abrasic <43157991+abrasic@users.noreply.github.com> Date: Tue, 27 Jun 2023 13:03:04 -0700 Subject: [PATCH] Add files via upload #14 --- BlendPresence/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BlendPresence/__init__.py b/BlendPresence/__init__.py index c88acde..a8d91e6 100644 --- a/BlendPresence/__init__.py +++ b/BlendPresence/__init__.py @@ -148,8 +148,7 @@ def getFileSize(): def getVersionStr(): ver = bpy.app.version - verC = bpy.app.version_char - return f"{ver[0]}.{ver[1]}.{ver[2]}{verC}" + return f"{ver[0]}.{ver[1]}.{ver[2]}" def getRenderEngineStr(): i = bpy.context.engine @@ -219,7 +218,8 @@ def updatePresence(): gpustr = gpustr.replace("NVIDIA GeForce ","") gpustr = gpustr.split("/", 1)[0] largeIconText = largeIconText + " | " + gpustr - elif gpustr and "Radeon" in gpustr: + elif gpustr and "AMD Radeon" in gpustr: + gpustr = gpustr.replace("AMD Radeon ","") gpustr = gpustr.split("/", 1)[0] largeIconText = largeIconText + " | " + gpustr