From 156037b2b7d21e24dd0e5d930cb53982089cbea0 Mon Sep 17 00:00:00 2001 From: yannk Date: Fri, 17 Dec 2021 22:40:57 +0100 Subject: [PATCH] Sending Blender logs to /dev/null - Typo corrected --- Makefile_previews | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Makefile_previews b/Makefile_previews index 47090c9..66432f3 100644 --- a/Makefile_previews +++ b/Makefile_previews @@ -3,11 +3,11 @@ BLENDFILES := $(foreach file, $(BLENDFILES_FOLDER), $(basename $(notdir $(wildca BLENDFILES_SUFFIX := $(foreach file, $(BLENDFILES), $(addsuffix $(file), _)) TARGET := $(foreach file, $(TEXTURESETS), $(addprefix $(file), $(BLENDFILES_SUFFIX))) TARGET := $(foreach file, $(TARGET), $(addsuffix .png, $(file))) -TARGET := $(foreach file, $(TARGET), $(addprefix $(BUILD_FOLDER)/, $(file))) +TARGET := $(foreach file, $(TARGET), $(addprefix $(PREVIEW_FOLDER)/, $(file))) RENDERS := $(foreach file, $(BLENDFILES_SUFFIX), $(addprefix %, $(file))) RENDERS := $(foreach file, $(RENDERS), $(addsuffix .png, $(file))) -RENDERS := $(foreach file, $(RENDERS), $(addprefix $(BUILD_FOLDER)/, $(file))) +RENDERS := $(foreach file, $(RENDERS), $(addprefix $(PREVIEW_FOLDER)/, $(file))) all: $(TARGET) @@ -33,14 +33,14 @@ $(RENDERS): $(TEXTURESET_FOLDER)/% for blendname in $$blender_render_files;\ do echo "blendname :" $$blendname;\ destination=$$(echo $$presetname"_"$$blendname.png);\ - echo "destination :"$(BUILD_FOLDER)"/"$$destination;\ + echo "destination :"$(PREVIEW_FOLDER)"/"$$destination;\ blendfile=$$(echo "blenderfiles/"$$rendertype"/"$$blendname".blend");\ echo "blendfile :" $$blendfile;\ mkdir --parents render;\ - echo "Rendering "$(BUILD_FOLDER)/$$destination;\ - $(BLENDEREXEC) -b $$blendfile --render-output //../../render/render##.png -f 1 --addons > nul 2>&1;\ - mkdir --parents $(BUILD_FOLDER);\ - composite -compose atop -gravity southeast -dissolve 90% $(LOGO) render/render01.png $(BUILD_FOLDER)/$$destination;\ + echo "Rendering "$(PREVIEW_FOLDER)/$$destination;\ + $(BLENDEREXEC) -b $$blendfile --render-output //../../render/render##.png -f 1 --addons > /dev/null 2>&1;\ + mkdir --parents $(PREVIEW_FOLDER);\ + composite -compose atop -gravity southeast -dissolve 90% $(LOGO) render/render01.png $(PREVIEW_FOLDER)/$$destination;\ done # Clean the subfolder with temp textures @ rm -Rf blenderfiles/textures