Merge branch 'blender-v2.93-release'
This commit is contained in:
@@ -194,6 +194,24 @@ static bool isDisabled(GpencilModifierData *md, int UNUSED(userRenderParams))
|
||||
return isModifierDisabled(md);
|
||||
}
|
||||
|
||||
static void add_this_collection(Collection *c,
|
||||
const ModifierUpdateDepsgraphContext *ctx,
|
||||
const int mode)
|
||||
{
|
||||
FOREACH_COLLECTION_VISIBLE_OBJECT_RECURSIVE_BEGIN (c, ob, mode) {
|
||||
if (ELEM(ob->type, OB_MESH, OB_MBALL, OB_CURVE, OB_SURF, OB_FONT)) {
|
||||
if (ob->lineart.usage != OBJECT_LRT_EXCLUDE) {
|
||||
DEG_add_object_relation(ctx->node, ob, DEG_OB_COMP_GEOMETRY, "Line Art Modifier");
|
||||
DEG_add_object_relation(ctx->node, ob, DEG_OB_COMP_TRANSFORM, "Line Art Modifier");
|
||||
}
|
||||
}
|
||||
if (ob->type == OB_EMPTY && (ob->transflag & OB_DUPLICOLLECTION)) {
|
||||
add_this_collection(ob->instance_collection, ctx, mode);
|
||||
}
|
||||
}
|
||||
FOREACH_COLLECTION_VISIBLE_OBJECT_RECURSIVE_END;
|
||||
}
|
||||
|
||||
static void updateDepsgraph(GpencilModifierData *md,
|
||||
const ModifierUpdateDepsgraphContext *ctx,
|
||||
const int mode)
|
||||
@@ -208,15 +226,7 @@ static void updateDepsgraph(GpencilModifierData *md,
|
||||
ctx->node, lmd->source_object, DEG_OB_COMP_TRANSFORM, "Line Art Modifier");
|
||||
}
|
||||
else {
|
||||
FOREACH_COLLECTION_VISIBLE_OBJECT_RECURSIVE_BEGIN (ctx->scene->master_collection, ob, mode) {
|
||||
if (ELEM(ob->type, OB_MESH, OB_MBALL, OB_CURVE, OB_SURF, OB_FONT)) {
|
||||
if (ob->lineart.usage != OBJECT_LRT_EXCLUDE) {
|
||||
DEG_add_object_relation(ctx->node, ob, DEG_OB_COMP_GEOMETRY, "Line Art Modifier");
|
||||
DEG_add_object_relation(ctx->node, ob, DEG_OB_COMP_TRANSFORM, "Line Art Modifier");
|
||||
}
|
||||
}
|
||||
}
|
||||
FOREACH_COLLECTION_VISIBLE_OBJECT_RECURSIVE_END;
|
||||
add_this_collection(ctx->scene->master_collection, ctx, mode);
|
||||
}
|
||||
DEG_add_object_relation(
|
||||
ctx->node, ctx->scene->camera, DEG_OB_COMP_TRANSFORM, "Line Art Modifier");
|
||||
|
@@ -37,8 +37,13 @@ void node_geometry(vec3 I,
|
||||
normal = (toworld * vec4(N, 0.0)).xyz;
|
||||
true_normal = normal;
|
||||
# endif
|
||||
|
||||
# ifdef HAIR_SHADER
|
||||
tangent = -hairTangent;
|
||||
# else
|
||||
tangent_orco_z(orco, orco);
|
||||
node_tangent(N, orco, objmat, tangent);
|
||||
# endif
|
||||
|
||||
parametric = vec3(barycentric, 0.0);
|
||||
backfacing = (gl_FrontFacing) ? 0.0 : 1.0;
|
||||
|
Reference in New Issue
Block a user