Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_object.c
| Show First 20 Lines • Show All 375 Lines • ▼ Show 20 Lines | static void rna_Object_duplicator_visibility_flag_update(Main *UNUSED(bmain), | ||||
| Object *ob = (Object *)ptr->owner_id; | Object *ob = (Object *)ptr->owner_id; | ||||
| DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY); | DEG_id_tag_update(&ob->id, ID_RECALC_GEOMETRY); | ||||
| } | } | ||||
| static void rna_MaterialIndex_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr) | static void rna_MaterialIndex_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr) | ||||
| { | { | ||||
| Object *ob = (Object *)ptr->owner_id; | Object *ob = (Object *)ptr->owner_id; | ||||
| if (ob && ob->type == OB_GPENCIL) { | if (ob && ob->type == OB_GPENCIL) { | ||||
| /* notifying material property in topbar */ | /* Notifying material property in top-bar. */ | ||||
| WM_main_add_notifier(NC_SPACE | ND_SPACE_VIEW3D, NULL); | WM_main_add_notifier(NC_SPACE | ND_SPACE_VIEW3D, NULL); | ||||
| } | } | ||||
| } | } | ||||
| static void rna_GPencil_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr) | static void rna_GPencil_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr) | ||||
| { | { | ||||
| Object *ob = (Object *)ptr->owner_id; | Object *ob = (Object *)ptr->owner_id; | ||||
| if (ob && ob->type == OB_GPENCIL) { | if (ob && ob->type == OB_GPENCIL) { | ||||
| ▲ Show 20 Lines • Show All 2,524 Lines • ▼ Show 20 Lines | static EnumPropertyItem prop_feature_line_usage_items[] = { | ||||
| 0, | 0, | ||||
| "Intersection Only", | "Intersection Only", | ||||
| "Only generate intersection lines for this collection"}, | "Only generate intersection lines for this collection"}, | ||||
| {OBJECT_LRT_NO_INTERSECTION, | {OBJECT_LRT_NO_INTERSECTION, | ||||
| "NO_INTERSECTION", | "NO_INTERSECTION", | ||||
| 0, | 0, | ||||
| "No Intersection", | "No Intersection", | ||||
| "Include this object but do not generate intersection lines"}, | "Include this object but do not generate intersection lines"}, | ||||
| {OBJECT_LRT_FORCE_INTERSECTION, | |||||
| "FORCE_INTERSECTION", | |||||
| 0, | |||||
| "Force Intersection", | |||||
| "Generate intersection lines even with objects that disabled intersection"}, | |||||
| {0, NULL, 0, NULL, NULL}, | {0, NULL, 0, NULL, NULL}, | ||||
| }; | }; | ||||
| srna = RNA_def_struct(brna, "ObjectLineArt", NULL); | srna = RNA_def_struct(brna, "ObjectLineArt", NULL); | ||||
| RNA_def_struct_ui_text(srna, "Object Line Art", "Object line art settings"); | RNA_def_struct_ui_text(srna, "Object Line Art", "Object line art settings"); | ||||
| RNA_def_struct_sdna(srna, "ObjectLineArt"); | RNA_def_struct_sdna(srna, "ObjectLineArt"); | ||||
| prop = RNA_def_property(srna, "usage", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "usage", PROP_ENUM, PROP_NONE); | ||||
| ▲ Show 20 Lines • Show All 939 Lines • Show Last 20 Lines | |||||