Skip to content

Commit

Permalink
Disable missing metallic texture workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbui78 committed Dec 18, 2024
1 parent 1ad27bc commit a5d0a35
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Binary file modified DazStudioPlugin/Resources/plugindata.zip
Binary file not shown.
6 changes: 3 additions & 3 deletions DazStudioPlugin/real_version.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#pragma once

#define PRODUCT_VERSION_STRING "2024 version 1.33"
#define PRODUCT_VERSION_STRING "2024 version 1.34"
#define VER_MAJOR 2024
#define VER_MINOR 1
#define VER_REV 33
#define VER_BUILD 422
#define VER_REV 34
#define VER_BUILD 424

#define TOSTRING(x) #x
#define VERSION_STRING TOSTRING(VER_MAJOR) "." TOSTRING(VER_MINOR) "." TOSTRING(VER_REV) "." TOSTRING(VER_BUILD)
5 changes: 4 additions & 1 deletion PluginData/blender_tools.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Blender Tools module
2024-11-26 - new function to propagate armature scaling to animation keyframes
2024-12-02 - work-around for GLTF exporter: create a new 1x1 black texture for metallic input if no metallic map is found
2024-12-17 - disabled MISSING_METALLIC_TEX_WORKAROUND to decrease moderation rejection
Blender python module containing various tools for importing and exporting
asset files in dtu format to blender, gltf and swapping out full res, 2K, 1K
Expand All @@ -17,6 +18,8 @@

logFilename = "blender_tools.log"

MISSING_METALLIC_TEX_WORKAROUND = False

## Do not modify below
import sys, json, os
try:
Expand Down Expand Up @@ -474,7 +477,7 @@ def process_material(mat, lowres_mode=None):
load_cached_image_to_material(matName, "Metallic", "Color", metallicMap, metallic_weight, "Non-Color")
else:
bsdf_inputs["Metallic"].default_value = metallic_weight
if metallic_weight == 0:
if MISSING_METALLIC_TEX_WORKAROUND and metallic_weight == 0:
# DB 2024-12-02, work-around for GLTF exporter
# Create a new 1x1 black texture
image_name = "black_tex.png"
Expand Down

0 comments on commit a5d0a35

Please sign in to comment.