Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_image_proj.c
| Show First 20 Lines • Show All 6,730 Lines • ▼ Show 20 Lines | static int texture_paint_add_texture_paint_slot_invoke(bContext *C, | ||||
| int type = get_texture_layer_type(op, "type"); | int type = get_texture_layer_type(op, "type"); | ||||
| proj_paint_default_color(op, type, ma); | proj_paint_default_color(op, type, ma); | ||||
| char imagename[MAX_ID_NAME - 2]; | char imagename[MAX_ID_NAME - 2]; | ||||
| get_default_texture_layer_name_for_object(ob, type, (char *)&imagename, sizeof(imagename)); | get_default_texture_layer_name_for_object(ob, type, (char *)&imagename, sizeof(imagename)); | ||||
| RNA_string_set(op->ptr, "name", imagename); | RNA_string_set(op->ptr, "name", imagename); | ||||
| return WM_operator_props_dialog_popup(C, op, 300, 100); | return WM_operator_props_dialog_popup(C, op, 300); | ||||
| } | } | ||||
| #define IMA_DEF_NAME N_("Untitled") | #define IMA_DEF_NAME N_("Untitled") | ||||
| void PAINT_OT_add_texture_paint_slot(wmOperatorType *ot) | void PAINT_OT_add_texture_paint_slot(wmOperatorType *ot) | ||||
| { | { | ||||
| PropertyRNA *prop; | PropertyRNA *prop; | ||||
| static float default_color[4] = {0.0f, 0.0f, 0.0f, 1.0f}; | static float default_color[4] = {0.0f, 0.0f, 0.0f, 1.0f}; | ||||
| ▲ Show 20 Lines • Show All 78 Lines • Show Last 20 Lines | |||||