Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/intern/dna_genfile.c
| Show First 20 Lines • Show All 470 Lines • ▼ Show 20 Lines | else { | ||||
| cp = (char *)data; | cp = (char *)data; | ||||
| for (int nr = 0; nr < sdna->nr_types; nr++) { | for (int nr = 0; nr < sdna->nr_types; nr++) { | ||||
| sdna->types[nr] = cp; | sdna->types[nr] = cp; | ||||
| /* this is a patch, to change struct names without a conflict with SDNA */ | /* this is a patch, to change struct names without a conflict with SDNA */ | ||||
| /* be careful to use it, in this case for a system-struct (opengl/X) */ | /* be careful to use it, in this case for a system-struct (opengl/X) */ | ||||
| if (*cp == 'b') { | |||||
| /* struct Screen was already used by X, 'bScreen' replaces the old IrisGL 'Screen' struct */ | /* struct Screen was already used by X, 'bScreen' replaces the old IrisGL 'Screen' struct */ | ||||
| if (strcmp("bScreen", cp) == 0) sdna->types[nr] = cp + 1; | if (strcmp("bScreen", cp) == 0) { | ||||
| sdna->types[nr] = cp + 1; | |||||
| } | |||||
| /* Groups renamed to collections in 2.8 */ | |||||
| else if (strcmp("Collection", cp) == 0) { | |||||
| sdna->types[nr] = "Group"; | |||||
| } | |||||
| else if (strcmp("CollectionObject", cp) == 0) { | |||||
| sdna->types[nr] = "GroupObject"; | |||||
| } | } | ||||
| else if (doversion_280) { | else if (doversion_280) { | ||||
| if (strcmp(cp, "SceneLayer") == 0) { | if (strcmp(cp, "SceneLayer") == 0) { | ||||
| sdna->types[nr] = "ViewLayer"; | sdna->types[nr] = "ViewLayer"; | ||||
| } | } | ||||
| else if (strcmp(cp, "SceneLayerEngineData") == 0) { | else if (strcmp(cp, "SceneLayerEngineData") == 0) { | ||||
| sdna->types[nr] = "ViewLayerEngineData"; | sdna->types[nr] = "ViewLayerEngineData"; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 931 Lines • Show Last 20 Lines | |||||