Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_scene.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 1,608 Lines • ▼ Show 20 Lines | if (ELEM(md->type, eModifierType_Subsurf, eModifierType_Multires, eModifierType_ParticleSystem)) { | ||||
| DEG_id_tag_update(&ob->id, OB_RECALC_DATA); | DEG_id_tag_update(&ob->id, OB_RECALC_DATA); | ||||
| } | } | ||||
| } | } | ||||
| for (psys = ob->particlesystem.first; psys; psys = psys->next) | for (psys = ob->particlesystem.first; psys; psys = psys->next) | ||||
| psys->recalc |= PSYS_RECALC_CHILD; | psys->recalc |= PSYS_RECALC_CHILD; | ||||
| if (ob->dup_group) { | if (ob->dup_group) { | ||||
| GroupObject *gob; | CollectionObject *cob; | ||||
| for (gob = ob->dup_group->gobject.first; gob; gob = gob->next) | for (cob = ob->dup_group->gobject.first; cob; cob = cob->next) | ||||
| object_simplify_update(gob->ob); | object_simplify_update(cob->ob); | ||||
| } | } | ||||
| } | } | ||||
| static void rna_Scene_use_simplify_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr) | static void rna_Scene_use_simplify_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr) | ||||
| { | { | ||||
| Scene *sce = ptr->id.data; | Scene *sce = ptr->id.data; | ||||
| Scene *sce_iter; | Scene *sce_iter; | ||||
| Base *base; | Base *base; | ||||
| ▲ Show 20 Lines • Show All 2,011 Lines • ▼ Show 20 Lines | void rna_def_freestyle_settings(BlenderRNA *brna) | ||||
| RNA_def_property_enum_bitflag_sdna(prop, NULL, "flags"); | RNA_def_property_enum_bitflag_sdna(prop, NULL, "flags"); | ||||
| RNA_def_property_enum_items(prop, edge_type_combination_items); | RNA_def_property_enum_items(prop, edge_type_combination_items); | ||||
| RNA_def_property_ui_text(prop, "Edge Type Combination", | RNA_def_property_ui_text(prop, "Edge Type Combination", | ||||
| "Specify a logical combination of selection conditions on feature edge types"); | "Specify a logical combination of selection conditions on feature edge types"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_Scene_freestyle_update"); | RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_Scene_freestyle_update"); | ||||
| prop = RNA_def_property(srna, "group", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "group", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "group"); | RNA_def_property_pointer_sdna(prop, NULL, "group"); | ||||
| RNA_def_property_struct_type(prop, "Group"); | RNA_def_property_struct_type(prop, "Collection"); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Group", "A group of objects based on which feature edges are selected"); | RNA_def_property_ui_text(prop, "Collection", "A collection of objects based on which feature edges are selected"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_Scene_freestyle_update"); | RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_Scene_freestyle_update"); | ||||
| prop = RNA_def_property(srna, "group_negation", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "group_negation", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_bitflag_sdna(prop, NULL, "flags"); | RNA_def_property_enum_bitflag_sdna(prop, NULL, "flags"); | ||||
| RNA_def_property_enum_items(prop, group_negation_items); | RNA_def_property_enum_items(prop, group_negation_items); | ||||
| RNA_def_property_ui_text(prop, "Group Negation", | RNA_def_property_ui_text(prop, "Collection Negation", | ||||
| "Specify either inclusion or exclusion of feature edges belonging to a group of objects"); | "Specify either inclusion or exclusion of feature edges belonging to a collection of objects"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_Scene_freestyle_update"); | RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_Scene_freestyle_update"); | ||||
| prop = RNA_def_property(srna, "face_mark_negation", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "face_mark_negation", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_bitflag_sdna(prop, NULL, "flags"); | RNA_def_property_enum_bitflag_sdna(prop, NULL, "flags"); | ||||
| RNA_def_property_enum_items(prop, face_mark_negation_items); | RNA_def_property_enum_items(prop, face_mark_negation_items); | ||||
| RNA_def_property_ui_text(prop, "Face Mark Negation", | RNA_def_property_ui_text(prop, "Face Mark Negation", | ||||
| "Specify either inclusion or exclusion of feature edges selected by face marks"); | "Specify either inclusion or exclusion of feature edges selected by face marks"); | ||||
| RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_Scene_freestyle_update"); | RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_Scene_freestyle_update"); | ||||
| ▲ Show 20 Lines • Show All 2,938 Lines • ▼ Show 20 Lines | #endif | ||||
| /* Layer and Collections */ | /* Layer and Collections */ | ||||
| prop = RNA_def_property(srna, "view_layers", PROP_COLLECTION, PROP_NONE); | prop = RNA_def_property(srna, "view_layers", PROP_COLLECTION, PROP_NONE); | ||||
| RNA_def_property_collection_sdna(prop, NULL, "view_layers", NULL); | RNA_def_property_collection_sdna(prop, NULL, "view_layers", NULL); | ||||
| RNA_def_property_struct_type(prop, "ViewLayer"); | RNA_def_property_struct_type(prop, "ViewLayer"); | ||||
| RNA_def_property_ui_text(prop, "View Layers", ""); | RNA_def_property_ui_text(prop, "View Layers", ""); | ||||
| rna_def_view_layers(brna, prop); | rna_def_view_layers(brna, prop); | ||||
| prop = RNA_def_property(srna, "master_collection", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "collection", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_flag(prop, PROP_NEVER_NULL); | RNA_def_property_flag(prop, PROP_NEVER_NULL); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "collection"); | RNA_def_property_pointer_sdna(prop, NULL, "master_collection"); | ||||
| RNA_def_property_struct_type(prop, "SceneCollection"); | RNA_def_property_struct_type(prop, "Collection"); | ||||
| RNA_def_property_ui_text(prop, "Master Collection", "Collection that contains all other collections"); | RNA_def_property_ui_text(prop, "Collection", "Scene master collection that objects and other collections in the scene"); | ||||
| /* Scene Display */ | /* Scene Display */ | ||||
| prop = RNA_def_property(srna, "display", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "display", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_pointer_sdna(prop, NULL, "display"); | RNA_def_property_pointer_sdna(prop, NULL, "display"); | ||||
| RNA_def_property_struct_type(prop, "SceneDisplay"); | RNA_def_property_struct_type(prop, "SceneDisplay"); | ||||
| RNA_def_property_ui_text(prop, "Scene Display", "Scene display settings for 3d viewport"); | RNA_def_property_ui_text(prop, "Scene Display", "Scene display settings for 3d viewport"); | ||||
| /* EEVEE */ | /* EEVEE */ | ||||
| Show All 31 Lines | |||||