-
-
Notifications
You must be signed in to change notification settings - Fork 431
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
Various UI Tweaks #659
Conversation
NullSenseStudio
commented
May 6, 2023
•
edited
Loading
edited
- 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.
- Image texture nodes will now fill the shader editor view better instead of just the bottom right corner.
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) |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
Co-authored-by: Carson Katri <[email protected]>