Browse Source

removed hardcoded blender path and added a setreg file for the default value.

Signed-off-by: Jason Dela Cruz <[email protected]>
Jason Dela Cruz 2 năm trước cách đây
mục cha
commit
3ace3d73d8

+ 4 - 4
Gems/O3DE/GeomNodes/Code/Source/Editor/Configuration/GNConfiguration.h

@@ -29,10 +29,10 @@ namespace GeomNodes
 
         static GNConfiguration CreateDefault();
 
-        AZStd::string m_blenderPath =
-            "C:/Program Files/Blender Foundation/Blender 3.4/blender.exe"; //!< Currently set blender path in user's machine.
-
-        AZStd::string m_lastFilePath; //!< Last file path used when selecting a blender file.
+        //! Blender executable path in user's machine.
+        AZStd::string m_blenderPath;
+        //! Last file path used when selecting a blender file.
+        AZStd::string m_lastFilePath;
 
         bool operator==(const GNConfiguration& other) const;
         bool operator!=(const GNConfiguration& other) const;

+ 11 - 0
Gems/O3DE/GeomNodes/Registry/geomnodesconfiguration.setreg

@@ -0,0 +1,11 @@
+{
+    "Amazon": {
+        "Gems": {
+            "GeomNodes": {
+                "GNConfiguration": {
+                    "Blender Path": "C:/Program Files/Blender Foundation/Blender 3.4/blender.exe"
+                }
+            }
+        }
+    }
+}