Skip to content

Commit a5d0a35

Browse files
committed
Disable missing metallic texture workaround
1 parent 1ad27bc commit a5d0a35

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed
78 Bytes
Binary file not shown.

DazStudioPlugin/real_version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#pragma once
22

3-
#define PRODUCT_VERSION_STRING "2024 version 1.33"
3+
#define PRODUCT_VERSION_STRING "2024 version 1.34"
44
#define VER_MAJOR 2024
55
#define VER_MINOR 1
6-
#define VER_REV 33
7-
#define VER_BUILD 422
6+
#define VER_REV 34
7+
#define VER_BUILD 424
88

99
#define TOSTRING(x) #x
1010
#define VERSION_STRING TOSTRING(VER_MAJOR) "." TOSTRING(VER_MINOR) "." TOSTRING(VER_REV) "." TOSTRING(VER_BUILD)

PluginData/blender_tools.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Blender Tools module
22
2024-11-26 - new function to propagate armature scaling to animation keyframes
33
2024-12-02 - work-around for GLTF exporter: create a new 1x1 black texture for metallic input if no metallic map is found
4+
2024-12-17 - disabled MISSING_METALLIC_TEX_WORKAROUND to decrease moderation rejection
45
56
Blender python module containing various tools for importing and exporting
67
asset files in dtu format to blender, gltf and swapping out full res, 2K, 1K
@@ -17,6 +18,8 @@
1718

1819
logFilename = "blender_tools.log"
1920

21+
MISSING_METALLIC_TEX_WORKAROUND = False
22+
2023
## Do not modify below
2124
import sys, json, os
2225
try:
@@ -474,7 +477,7 @@ def process_material(mat, lowres_mode=None):
474477
load_cached_image_to_material(matName, "Metallic", "Color", metallicMap, metallic_weight, "Non-Color")
475478
else:
476479
bsdf_inputs["Metallic"].default_value = metallic_weight
477-
if metallic_weight == 0:
480+
if MISSING_METALLIC_TEX_WORKAROUND and metallic_weight == 0:
478481
# DB 2024-12-02, work-around for GLTF exporter
479482
# Create a new 1x1 black texture
480483
image_name = "black_tex.png"

0 commit comments

Comments
 (0)