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 8,365 Lines • ▼ Show 20 Lines | static void SCULPT_OT_optimize(wmOperatorType *ot) | ||||
| ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO; | ||||
| } | } | ||||
| /********************* Dynamic topology symmetrize ********************/ | /********************* Dynamic topology symmetrize ********************/ | ||||
| static bool sculpt_no_multires_poll(bContext *C) | static bool sculpt_no_multires_poll(bContext *C) | ||||
| { | { | ||||
| Object *ob = CTX_data_active_object(C); | Object *ob = CTX_data_active_object(C); | ||||
| SculptSession *ss = ob->sculpt; | if (SCULPT_mode_poll(C) && ob->sculpt && ob->sculpt->pbvh) { | ||||
| if (ss && ss->pbvh && SCULPT_mode_poll(C)) { | return BKE_pbvh_type(ob->sculpt->pbvh) != PBVH_GRIDS; | ||||
| return BKE_pbvh_type(ss->pbvh) != PBVH_GRIDS; | |||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| static int sculpt_symmetrize_exec(bContext *C, wmOperator *UNUSED(op)) | static int sculpt_symmetrize_exec(bContext *C, wmOperator *UNUSED(op)) | ||||
| { | { | ||||
| Object *ob = CTX_data_active_object(C); | Object *ob = CTX_data_active_object(C); | ||||
| const Sculpt *sd = CTX_data_tool_settings(C)->sculpt; | const Sculpt *sd = CTX_data_tool_settings(C)->sculpt; | ||||
| ▲ Show 20 Lines • Show All 2,799 Lines • Show Last 20 Lines | |||||