Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
| Show First 20 Lines • Show All 7,881 Lines • ▼ Show 20 Lines | if (((op->flag & OP_IS_INVOKE) == 0) || (mouse == NULL) || | ||||
| Object *ob = CTX_data_active_object(C); | Object *ob = CTX_data_active_object(C); | ||||
| SculptSession *ss = ob->sculpt; | SculptSession *ss = ob->sculpt; | ||||
| Sculpt *sd = CTX_data_tool_settings(C)->sculpt; | Sculpt *sd = CTX_data_tool_settings(C)->sculpt; | ||||
| ED_view3d_init_mats_rv3d(ob, CTX_wm_region_view3d(C)); | ED_view3d_init_mats_rv3d(ob, CTX_wm_region_view3d(C)); | ||||
| sculpt_update_cache_invariants(C, sd, ss, op, mouse); | sculpt_update_cache_invariants(C, sd, ss, op, mouse); | ||||
| SculptCursorGeometryInfo sgi; | |||||
| SCULPT_cursor_geometry_info_update(C, &sgi, mouse, false); | |||||
| SCULPT_undo_push_begin(ob, sculpt_tool_name(sd)); | SCULPT_undo_push_begin(ob, sculpt_tool_name(sd)); | ||||
| return true; | return true; | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| static void sculpt_stroke_update_step(bContext *C, | static void sculpt_stroke_update_step(bContext *C, | ||||
| ▲ Show 20 Lines • Show All 1,538 Lines • Show Last 20 Lines | |||||