这是indexloc提供的服务,不要输入任何密码
Skip to content

Fix ScreenShots feature #573

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

newemka
Copy link
Contributor

@newemka newemka commented May 18, 2025

Problem:

No matter the selected operator GetCurrentTexture() is never null so the Screenshot button is always visible.

While in Debug mode, clicking the Screenshot button was creating a Screenshot folder in Editor\bin\Debug\net9.0-windows

If a Command or a Texture2D operator is selected we get a png file with the content of the Output View.

If an other kinf of operator is selected we get a png file with the last render (from a Command or Texture2D) of the Output View.

Solution:

Same logic as for the "Start Render" button in the Render To File window

But here we allow to save screenshots for Texture2D and Command operators.

If it doesn't exist a Screenshots folder is created in the opened project's folder and the png image is written inside.

I also added the Screenshots folder to the list of excluded directories in AutoBackup.cs

@pixtur pixtur merged commit 5a5cfb5 into tixl3d:main May 18, 2025
1 check passed
@pixtur
Copy link
Collaborator

pixtur commented May 18, 2025

Oh good catch!

@sense-amr
Copy link
Contributor

There should be documentation added as to where to NOW find the screen shots ..
and it essentially makes the existing Editor\bin\Release\net9.0-windows\Screenshots redundant ..
It should be stated in documentation that the location of Screenshots is now ..

...Documents\TiXL\projectname\Screenshots

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants