Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenloader/intern/versioning_300.cc
| Show First 20 Lines • Show All 3,647 Lines • ▼ Show 20 Lines | LISTBASE_FOREACH (bScreen *, screen, &bmain->screens) { | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| if (!MAIN_VERSION_ATLEAST(bmain, 304, 6)) { | |||||
| LISTBASE_FOREACH (bNodeTree *, ntree, &bmain->nodetrees) { | |||||
| if (ntree->type != NTREE_GEOMETRY) { | |||||
| continue; | |||||
| } | |||||
| LISTBASE_FOREACH (bNode *, node, &ntree->nodes) { | |||||
| if (node->type != GEO_NODE_SAMPLE_CURVE) { | |||||
| continue; | |||||
| } | |||||
| static_cast<NodeGeometryCurveSample *>(node->storage)->use_all_curves = true; | |||||
| static_cast<NodeGeometryCurveSample *>(node->storage)->data_type = CD_PROP_FLOAT; | |||||
| bNodeSocket *curve_socket = nodeFindSocket(node, SOCK_IN, "Curve"); | |||||
| BLI_assert(curve_socket != nullptr); | |||||
| STRNCPY(curve_socket->name, "Curves"); | |||||
| STRNCPY(curve_socket->identifier, "Curves"); | |||||
| } | |||||
| } | |||||
| } | |||||
| /** | /** | ||||
| * Versioning code until next subversion bump goes here. | * Versioning code until next subversion bump goes here. | ||||
| * | * | ||||
| * \note Be sure to check when bumping the version: | * \note Be sure to check when bumping the version: | ||||
| * - "versioning_userdef.c", #blo_do_versions_userdef | * - "versioning_userdef.c", #blo_do_versions_userdef | ||||
| * - "versioning_userdef.c", #do_versions_theme | * - "versioning_userdef.c", #do_versions_theme | ||||
| * | * | ||||
| * \note Keep this message at the bottom of the function. | * \note Keep this message at the bottom of the function. | ||||
| */ | */ | ||||
| { | { | ||||
| /* Keep this block, even when empty. */ | /* Keep this block, even when empty. */ | ||||
| } | } | ||||
| } | } | ||||