Skip to content
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

Various UI Tweaks #659

Merged
merged 8 commits into from
Jul 2, 2023
Merged

Various UI Tweaks #659

merged 8 commits into from
Jul 2, 2023

Conversation

NullSenseStudio
Copy link
Collaborator

@NullSenseStudio NullSenseStudio commented May 6, 2023

  • When there are multiple image editors, generating from an open image source or upscaling will now pick the image from the image editor it was executed from.
  • Image editors with image pin activated will no longer be replaced with generated images.
  • Cancel generator operator has been slightly changed to better differentiate it from release generator.
    blender_nFIlZtKP8q
  • Image texture nodes will now fill the shader editor view better instead of just the bottom right corner.
    blender_NpISzg732d

Comment on lines -83 to -89
def step_progress_update(self, context):
if hasattr(context.area, "regions"):
for region in context.area.regions:
if region.type == "UI":
region.tag_redraw()
return None
bpy.types.Scene.dream_textures_progress = bpy.props.IntProperty(name="", default=0, min=0, max=generated_args['steps'], update=step_progress_update)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've found it's more performant to put similar functionality within the step callback. Strangely changing this to an empty function would still allow the UI to redraw. I assume it was redrawing more than necessary for seeing the progress bar. Allows for generating about 15%-20% faster in my experience.

Copy link
Owner

@carson-katri carson-katri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvements. Just one small change for img2img.

operators/dream_texture.py Outdated Show resolved Hide resolved
NullSenseStudio and others added 2 commits May 21, 2023 18:15
Co-authored-by: Carson Katri <Carson.katri@gmail.com>
@carson-katri carson-katri merged commit 52960e9 into main Jul 2, 2023
@carson-katri carson-katri deleted the ui-tweaks branch July 2, 2023 14:36
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.

None yet

2 participants