Skip to content

Commit

Permalink
Removed screenshot folder from gitIngore and added file name to scree…
Browse files Browse the repository at this point in the history
…n_capture
  • Loading branch information
Angar0Os committed Nov 19, 2024
1 parent 284c655 commit 8c7f4bb
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/resources_compiled
/_bin
/assetc-ubuntu-x64-2.3.0
screenshots/.png
2 changes: 1 addition & 1 deletion scene_capture_texture.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ while not hg.ReadKeyboard():Key(hg.K_Escape) and hg.IsWindowOpen(win) do

-- Take screenshot if CaptureTexture is ready and user pressed space
elseif (state == "capture" and frame_count_capture <= frame) then
png_filename = "screenshots/" .. ".png"
png_filename = "screen_capture_texture_lua" .. ".png"
hg.SavePNG(picture, png_filename)
state = "none" -- Reset state to none to be able to screenshot again
end
Expand Down
2 changes: 1 addition & 1 deletion scene_capture_texture.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@

# Take screenshot if CaptureTexture is ready and user pressed space
elif(state == "capture" and frame_count_capture <= frame):
png_filename = "screenshots/" + ".png"
png_filename = "screen_capture_texture_python" + ".png"
hg.SavePNG(picture, png_filename)
state = "none" #Reset state to none to be able to screenshot again

Expand Down

0 comments on commit 8c7f4bb

Please sign in to comment.