Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/paint_vertex.c
| Context not available. | |||||
| if (vertex_paint_mode_poll(C) && BKE_paint_brush(&CTX_data_tool_settings(C)->vpaint->paint)) { | if (vertex_paint_mode_poll(C) && BKE_paint_brush(&CTX_data_tool_settings(C)->vpaint->paint)) { | ||||
| ScrArea *sa = CTX_wm_area(C); | ScrArea *sa = CTX_wm_area(C); | ||||
| if (sa && sa->spacetype == SPACE_VIEW3D) { | if (sa && sa->spacetype == SPACE_VIEW3D) { | ||||
| if (!check_tool) { | |||||
| return 1; | |||||
| } | |||||
| ARegion *ar = CTX_wm_region(C); | ARegion *ar = CTX_wm_region(C); | ||||
| if (ar->regiontype == RGN_TYPE_WINDOW) { | if (ar->regiontype == RGN_TYPE_WINDOW) { | ||||
| if (!check_tool || WM_toolsystem_active_tool_is_brush(C)) { | if (WM_toolsystem_active_tool_is_brush(C)) { | ||||
| return 1; | return 1; | ||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||