Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/view_map/ViewMapIO.cpp
| Show First 20 Lines • Show All 973 Lines • ▼ Show 20 Lines | if (pb) { | ||||
| pb->setProgress(0); | pb->setProgress(0); | ||||
| } | } | ||||
| // Read and set the options | // Read and set the options | ||||
| unsigned char flags; | unsigned char flags; | ||||
| READ(flags); | READ(flags); | ||||
| Options::setFlags(flags); | Options::setFlags(flags); | ||||
| // Read the size of the five ViewMap's lists (with some extra informations for the ViewVertices) | // Read the size of the five ViewMap's lists (with some extra information for the ViewVertices) | ||||
| // and instantiate them (with default costructors) | // and instantiate them (with default costructors) | ||||
| unsigned vs_s, fe_s, fe_rle1, fe_rle2, sv_s, ve_s, vv_s, vv_rle1, vv_rle2; | unsigned vs_s, fe_s, fe_rle1, fe_rle2, sv_s, ve_s, vv_s, vv_rle1, vv_rle2; | ||||
| READ(vs_s); | READ(vs_s); | ||||
| READ(fe_s); | READ(fe_s); | ||||
| if (fe_s) { | if (fe_s) { | ||||
| bool b; | bool b; | ||||
| READ(b); | READ(b); | ||||
| ▲ Show 20 Lines • Show All 122 Lines • ▼ Show 20 Lines | for (unsigned int i3 = 0; i3 < vm->ViewEdges().size(); i3++) | ||||
| vm->ViewEdges()[i3]->userdata = SET_UINT_IN_POINTER(i3); | vm->ViewEdges()[i3]->userdata = SET_UINT_IN_POINTER(i3); | ||||
| for (unsigned int i4 = 0; i4 < vm->ViewVertices().size(); i4++) | for (unsigned int i4 = 0; i4 < vm->ViewVertices().size(); i4++) | ||||
| vm->ViewVertices()[i4]->userdata = SET_UINT_IN_POINTER(i4); | vm->ViewVertices()[i4]->userdata = SET_UINT_IN_POINTER(i4); | ||||
| // Write the current options | // Write the current options | ||||
| unsigned char flags = Options::getFlags(); | unsigned char flags = Options::getFlags(); | ||||
| WRITE(flags); | WRITE(flags); | ||||
| // Write the size of the five lists (with some extra informations for the ViewVertices) | // Write the size of the five lists (with some extra information for the ViewVertices) | ||||
| unsigned size; | unsigned size; | ||||
| size = vm->ViewShapes().size(); | size = vm->ViewShapes().size(); | ||||
| WRITE(size); | WRITE(size); | ||||
| size = vm->FEdges().size(); | size = vm->FEdges().size(); | ||||
| WRITE(size); | WRITE(size); | ||||
| if (size) { | if (size) { | ||||
| bool b = vm->FEdges()[0]->isSmooth(); | bool b = vm->FEdges()[0]->isSmooth(); | ||||
| WRITE(b); | WRITE(b); | ||||
| ▲ Show 20 Lines • Show All 132 Lines • Show Last 20 Lines | |||||