Fix for missing CustomData flag updates in the temporary code for migrating
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Tue, 26 Mar 2013 00:36:43 +0000 (00:36 +0000)
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Tue, 26 Mar 2013 00:36:43 +0000 (00:36 +0000)
Freestyle edge/face marks from old .blend files.
Problem report and patch by IRIE Shinsuke, many thanks!

source/blender/blenloader/intern/readfile.c

index 082702f6d9d741d4269cef70da6a5a89df79feb8..2c75daf6878099b6c94738ee0c2b9a75fe0208b0 100644 (file)
@@ -9336,6 +9336,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
                                        medge++;
                                        fed++;
                                }
+                               me->cd_flag |= ME_CDFLAG_FREESTYLE_EDGE;
                                printf("Migrated to CustomData-based Freestyle edge marks\n");
                        }
                        /* Freestyle face marks */
@@ -9359,6 +9360,7 @@ static void do_versions(FileData *fd, Library *lib, Main *main)
                                        mpoly++;
                                        ffa++;
                                }
+                               me->cd_flag |= ME_CDFLAG_FREESTYLE_FACE;
                                printf("Migrated to CustomData-based Freestyle face marks\n");
                        }
                }