Overlay-Next: Check active_base for GPv3 sync

`state.active_base` could be null when checking `active_base->object`,
thus guarding this from happening.
This commit is contained in:
YimingWu
2024-10-07 14:22:20 +08:00
parent 98002ce4ad
commit eec84d16ed

View File

@@ -189,7 +189,7 @@ class GreasePencil {
return;
}
if (ob_ref.object != state.active_base->object) {
if ((!state.active_base) || (ob_ref.object != state.active_base->object)) {
/* Only display for the active object. */
return;
}