Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_nodetree.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 5,428 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| static void def_sh_bevel(StructRNA *srna) | static void def_sh_bevel(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| prop = RNA_def_property(srna, "samples", PROP_INT, PROP_UNSIGNED); | prop = RNA_def_property(srna, "samples", PROP_INT, PROP_UNSIGNED); | ||||
| RNA_def_property_int_sdna(prop, NULL, "custom1"); | RNA_def_property_int_sdna(prop, NULL, "custom1"); | ||||
| RNA_def_property_range(prop, 2, 16); | RNA_def_property_range(prop, 2, 128); | ||||
| RNA_def_property_ui_range(prop, 2, 16, 1, 1); | |||||
| RNA_def_property_ui_text(prop, "Samples", "Number of rays to trace per shader evaluation"); | RNA_def_property_ui_text(prop, "Samples", "Number of rays to trace per shader evaluation"); | ||||
| RNA_def_property_update(prop, 0, "rna_Node_update"); | RNA_def_property_update(prop, 0, "rna_Node_update"); | ||||
| } | } | ||||
| static void def_sh_ambient_occlusion(StructRNA *srna) | static void def_sh_ambient_occlusion(StructRNA *srna) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| ▲ Show 20 Lines • Show All 4,684 Lines • Show Last 20 Lines | |||||