Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/blender/blender_curves.cpp
| Show First 20 Lines • Show All 789 Lines • ▼ Show 20 Lines | void BlenderSync::sync_curve_settings() | ||||
| CurveSystemManager *curve_system_manager = scene->curve_system_manager; | CurveSystemManager *curve_system_manager = scene->curve_system_manager; | ||||
| CurveSystemManager prev_curve_system_manager = *curve_system_manager; | CurveSystemManager prev_curve_system_manager = *curve_system_manager; | ||||
| curve_system_manager->use_curves = get_boolean(csscene, "use_curves"); | curve_system_manager->use_curves = get_boolean(csscene, "use_curves"); | ||||
| curve_system_manager->minimum_width = get_float(csscene, "minimum_width"); | curve_system_manager->minimum_width = get_float(csscene, "minimum_width"); | ||||
| curve_system_manager->maximum_width = get_float(csscene, "maximum_width"); | curve_system_manager->maximum_width = get_float(csscene, "maximum_width"); | ||||
| curve_system_manager->primitive = get_enum(csscene, "primitive"); | curve_system_manager->primitive = | ||||
| curve_system_manager->curve_shape = get_enum(csscene, "shape"); | (CurvePrimitiveType)get_enum(csscene, | ||||
| "primitive", | |||||
| CURVE_NUM_PRIMITIVE_TYPES, | |||||
| CURVE_LINE_SEGMENTS); | |||||
| curve_system_manager->curve_shape = | |||||
| (CurveShapeType)get_enum(csscene, | |||||
| "shape", | |||||
| CURVE_NUM_SHAPE_TYPES, | |||||
| CURVE_THICK); | |||||
| curve_system_manager->resolution = get_int(csscene, "resolution"); | curve_system_manager->resolution = get_int(csscene, "resolution"); | ||||
| curve_system_manager->subdivisions = get_int(csscene, "subdivisions"); | curve_system_manager->subdivisions = get_int(csscene, "subdivisions"); | ||||
| curve_system_manager->use_backfacing = !get_boolean(csscene, "cull_backfacing"); | curve_system_manager->use_backfacing = !get_boolean(csscene, "cull_backfacing"); | ||||
| /* Triangles */ | /* Triangles */ | ||||
| if(curve_system_manager->primitive == CURVE_TRIANGLES) { | if(curve_system_manager->primitive == CURVE_TRIANGLES) { | ||||
| /* camera facing planes */ | /* camera facing planes */ | ||||
| if(curve_system_manager->curve_shape == CURVE_RIBBON) { | if(curve_system_manager->curve_shape == CURVE_RIBBON) { | ||||
| ▲ Show 20 Lines • Show All 238 Lines • Show Last 20 Lines | |||||