Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_dynamicpaint.c
| Show First 20 Lines • Show All 645 Lines • ▼ Show 20 Lines | #endif | ||||
| RNA_def_property_enum_items(prop, prop_dynamicpaint_surface_preview); | RNA_def_property_enum_items(prop, prop_dynamicpaint_surface_preview); | ||||
| RNA_def_property_ui_text(prop, "Preview", ""); | RNA_def_property_ui_text(prop, "Preview", ""); | ||||
| RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_DynamicPaint_redoModifier"); | RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_DynamicPaint_redoModifier"); | ||||
| /* to check if output name exists */ | /* to check if output name exists */ | ||||
| func = RNA_def_function(srna, "output_exists", "rna_DynamicPaint_is_output_exists"); | func = RNA_def_function(srna, "output_exists", "rna_DynamicPaint_is_output_exists"); | ||||
| RNA_def_function_ui_description(func, "Checks if surface output layer of given name exists"); | RNA_def_function_ui_description(func, "Checks if surface output layer of given name exists"); | ||||
| parm = RNA_def_pointer(func, "object", "Object", "", ""); | parm = RNA_def_pointer(func, "object", "Object", "", ""); | ||||
| RNA_def_property_flag(parm, PROP_REQUIRED | PROP_NEVER_NULL); | RNA_def_parameter_flags(parm, PROP_NEVER_NULL, PARM_REQUIRED); | ||||
| parm = RNA_def_int(func, "index", 0, 0, 1, "Index", "", 0, 1); | parm = RNA_def_int(func, "index", 0, 0, 1, "Index", "", 0, 1); | ||||
| RNA_def_property_flag(parm, PROP_REQUIRED); | RNA_def_parameter_flags(parm, 0, PARM_REQUIRED); | ||||
| /* return type */ | /* return type */ | ||||
| parm = RNA_def_boolean(func, "exists", 0, "", ""); | parm = RNA_def_boolean(func, "exists", 0, "", ""); | ||||
| RNA_def_function_return(func, parm); | RNA_def_function_return(func, parm); | ||||
| prop = RNA_def_property(srna, "depth_clamp", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "depth_clamp", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_range(prop, 0.00, 50.0); | RNA_def_property_range(prop, 0.00, 50.0); | ||||
| RNA_def_property_ui_range(prop, 0.00, 5.0, 1, 2); | RNA_def_property_ui_range(prop, 0.00, 5.0, 1, 2); | ||||
| ▲ Show 20 Lines • Show All 350 Lines • Show Last 20 Lines | |||||