Преглед изворни кода

Fixed mismatching scene savefile names in Lua examples.

Lasse Öörni пре 12 година
родитељ
комит
276571f7f0
2 измењених фајлова са 4 додато и 4 уклоњено
  1. 2 2
      Bin/Data/LuaScripts/11_Physics.lua
  2. 2 2
      Bin/Data/LuaScripts/18_CharacterDemo.lua

+ 2 - 2
Bin/Data/LuaScripts/11_Physics.lua

@@ -199,10 +199,10 @@ function MoveCamera(timeStep)
     -- Check for loading/saving the scene. Save the scene to the file Data/Scenes/Physics.xml relative to the executable
     -- directory
     if input:GetKeyPress(KEY_F5) then
-        scene_:SaveXML(fileSystem:GetProgramDir().."Data/Scenes/PhysicsStressTest.xml")
+        scene_:SaveXML(fileSystem:GetProgramDir().."Data/Scenes/Physics.xml")
     end
     if input:GetKeyPress(KEY_F7) then
-        scene_:LoadXML(fileSystem:GetProgramDir().."Data/Scenes/PhysicsStressTest.xml")
+        scene_:LoadXML(fileSystem:GetProgramDir().."Data/Scenes/Physics.xml")
     end
 
     -- Toggle debug geometry with space

+ 2 - 2
Bin/Data/LuaScripts/18_CharacterDemo.lua

@@ -250,10 +250,10 @@ function HandleUpdate(eventType, eventData)
 
             -- Check for loading / saving the scene
             if input:GetKeyPress(KEY_F5) then
-                scene_:SaveXML(fileSystem:GetProgramDir().."Data/Scenes/PhysicsStressTest.xml")
+                scene_:SaveXML(fileSystem:GetProgramDir().."Data/Scenes/CharacterDemo.xml")
             end
             if input:GetKeyPress(KEY_F7) then
-                scene_:LoadXML(fileSystem:GetProgramDir().."Data/Scenes/PhysicsStressTest.xml")
+                scene_:LoadXML(fileSystem:GetProgramDir().."Data/Scenes/CharacterDemo.xml")
                 -- After loading we have to reacquire the character scene node, as it has been recreated
                 -- Simply find by name as there's only one of them
                 characterNode = scene_:GetChild("Jack", true)