not even fixes

This commit is contained in:
tim h 2023-01-31 18:14:52 -06:00
parent ec1699e0a3
commit c8ef073531
3 changed files with 2 additions and 5 deletions

View file

@ -434,7 +434,7 @@
<script src="js/defaults.js?v=5b06818" type="text/javascript"></script>
<!-- Base Libs -->
<script src="js/lib/util.js?v=f5ef803" type="text/javascript"></script>
<script src="js/lib/util.js?v=24130a5" type="text/javascript"></script>
<script src="js/lib/events.js?v=2ab7933" type="text/javascript"></script>
<script src="js/lib/db.js?v=434363b" type="text/javascript"></script>
<script src="js/lib/input.js?v=769485c" type="text/javascript"></script>
@ -468,7 +468,7 @@
src="js/ui/tool/generic.js?v=3e678e0"
type="text/javascript"></script>
<script src="js/ui/tool/dream.js?v=3f03af8" type="text/javascript"></script>
<script src="js/ui/tool/dream.js?v=fc1c6f7" type="text/javascript"></script>
<script
src="js/ui/tool/maskbrush.js?v=d88810f"
type="text/javascript"></script>

View file

@ -483,7 +483,6 @@ const makeElement = (
* @param {number}} blur
* @returns {HTMLCanvasElement}
*/
const subtractBackground = (canvas, bb, bgImg, blur = 0) => {
// set up temp canvases
const bgCanvas = document.createElement("canvas");

View file

@ -534,9 +534,7 @@ const _generate = async (endpoint, request, bb, options = {}) => {
endpoint == "img2img" &&
toolbar._current_tool.state.removeBackground
) {
//TODO SERIOUSLY CHECK FOR MORE THINGS HERE
canvas = subtractBackground(canvas, bb, dreamData.bgImg, 0);
// do something else too probably idunno
}
commands.runCommand("drawImage", "Image Dream", {