fixes hrfix x/y calcs on non-square reticles

This commit is contained in:
tim h 2022-12-30 22:29:01 -06:00
parent 77f40a7928
commit c9a768d406
2 changed files with 5 additions and 1 deletions

View file

@ -348,7 +348,7 @@
src="js/ui/tool/generic.js?v=2bcd36d"
type="text/javascript"></script>
<script src="js/ui/tool/dream.js?v=230e42e" type="text/javascript"></script>
<script src="js/ui/tool/dream.js?v=2b099b5" type="text/javascript"></script>
<script
src="js/ui/tool/maskbrush.js?v=1e8a893"
type="text/javascript"></script>

View file

@ -1346,6 +1346,10 @@ const dreamTool = () =>
h: stableDiffusionData.height,
};
//hacky set non-square auto hrfix values
stableDiffusionData.firstphase_height = resolution.h / 2;
stableDiffusionData.firstphase_width = resolution.w / 2;
if (global.connection === "online") {
dream_generate_callback(bb, resolution, state);
} else {