Static Override: fix stupid ;istake in moving autooverride to own struct flag.
authorBastien Montagne <montagne29@wanadoo.fr>
Fri, 4 May 2018 13:44:19 +0000 (15:44 +0200)
committerBastien Montagne <montagne29@wanadoo.fr>
Fri, 4 May 2018 13:44:19 +0000 (15:44 +0200)
source/blender/blenkernel/intern/library_override.c

index 9f3cc578d2a380b9f9950b469bd561368a97461a..31e621b236f89210b419076c35d718c811beb214 100644 (file)
@@ -163,7 +163,7 @@ static ID *override_static_create_from(Main *bmain, ID *reference_id)
        id_us_min(local_id);
 
        BKE_override_static_init(local_id, reference_id);
-       local_id->flag |= STATICOVERRIDE_AUTO;
+       local_id->override_static->flag |= STATICOVERRIDE_AUTO;
 
        return local_id;
 }