Fix uninitialized local-view flag on object creation

Local view return argument to ED_object_add_generic_get_opts
was left uninitialized.
This commit is contained in:
Campbell Barton 2021-04-30 11:39:13 +10:00
parent e5c2e5e9e5
commit c195c061d5
1 changed files with 1 additions and 3 deletions

View File

@ -482,9 +482,7 @@ bool ED_object_add_generic_get_opts(bContext *C,
if (local_view_bits) {
View3D *v3d = CTX_wm_view3d(C);
if (v3d && v3d->localvd) {
*local_view_bits = v3d->local_view_uuid;
}
*local_view_bits = (v3d && v3d->localvd) ? v3d->local_view_uuid : 0;
}
/* Location! */