Fix: GPv3: Newly added objects don't have the Use Lights setting set

The issue was that the code checked for the `OB_GPENCIL_LEGACY`
type instead of `OB_GREASE_PENCIL`.
This commit is contained in:
Falk David
2024-10-18 18:07:51 +02:00
parent 0351774d86
commit 1906446716

View File

@@ -1996,7 +1996,7 @@ static void object_init(Object *ob, const short ob_type)
ob->upflag = OB_POSY;
}
if (ob->type == OB_GPENCIL_LEGACY) {
if (ob->type == OB_GREASE_PENCIL) {
ob->dtx |= OB_USE_GPENCIL_LIGHTS;
}