We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0505963 commit 96c9e23Copy full SHA for 96c9e23
1 file changed
source/nijigenerate/commands/automesh/dynamic.d
@@ -105,6 +105,11 @@ template ApplyAutoMeshPT(alias PT)
105
if (auto n = cast(Node)t) lockTargets ~= n;
106
}
107
auto drawables = enumerateDrawablesForAutoMesh(lockTargets);
108
+ // The selected target itself may be skipped by traversal rules such as coverOthers().
109
+ // AutoMesh processors can still read the direct target's texture, so lock it explicitly.
110
+ foreach (t; targets) {
111
+ if (auto d = cast(Drawable)t) drawables ~= d;
112
+ }
113
foreach (d; drawables) {
114
auto p = cast(Part)d;
115
if (p is null) continue;
0 commit comments