|
Blender V5.3
|
Classes | |
| struct | PaintGradientData |
| struct | ImagePaintStroke |
| struct | TexturePaintStroke |
| struct | TexturePaintData |
| struct | ExperimentalTexturePaintStroke |
Functions | |
| static void | gradient_draw_line (bContext *C, const int2 &xy, const float2 &, void *customdata) |
| static void | stroke_cache_update (ViewContext &, Paint &paint, Object &object, const PaintStroke::StrokeStep &stroke_step) |
| static void | do_brush_action (const Depsgraph &depsgraph, const Scene &scene, const Brush &brush, Object &ob, PaintModeData *paint_mode_data) |
| static PaintStroke * | create_paint_stroke (bContext *C, wmOperator *op, const wmEvent *event) |
| static PaintStroke * | get_paint_stroke (bContext *C, wmOperator *op) |
| static bool | should_check_before_stroke_creation (bContext *C, wmOperator *op) |
| static bool | check_preconditions (bContext *C, wmOperator *op) |
| static wmOperatorStatus | paint_invoke (bContext *C, wmOperator *op, const wmEvent *event) |
| static wmOperatorStatus | paint_exec (bContext *C, wmOperator *op) |
| static wmOperatorStatus | paint_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | paint_cancel (bContext *C, wmOperator *op) |
|
static |
Definition at line 807 of file paint_image_ops_paint.cc.
References blender::BKE_view_layer_active_object_get(), blender::BKE_view_layer_synced_ensure(), C, check_preconditions(), blender::CTX_data_main(), blender::CTX_data_scene(), blender::CTX_data_view_layer(), blender::ED_paint_data_warning(), blender::ED_paint_proj_mesh_data_check(), NC_SCENE, ND_TOOLSETTINGS, blender::wmOperator::reports, and blender::WM_event_add_notifier().
Referenced by check_preconditions(), paint_exec(), and paint_invoke().
|
static |
Definition at line 757 of file paint_image_ops_paint.cc.
References blender::BKE_paint_brush_for_read(), blender::BKE_paint_get_active_from_context(), C, create_paint_stroke(), blender::CTX_wm_region_view3d(), blender::bke::brush::implements_3d_texture_paint(), blender::None, blender::wmOperator::ptr, blender::RNA_enum_get(), blender::U, and USER_EXPERIMENTAL_TEST.
Referenced by create_paint_stroke(), paint_exec(), and paint_invoke().
|
static |
Definition at line 624 of file paint_image_ops_paint.cc.
References blender::BLI_assert(), blender::BRUSH_AUTOMASKING_CAVITY_ALL, blender::bke::pbvh::build_pixels(), blender::SculptSession::cache, blender::ed::sculpt_paint::auto_mask::Cache::calc_cavity_factor(), blender::ed::sculpt_paint::image::do_3d_image_paint_brush(), do_brush_action(), blender::Editor, blender::ed::sculpt_paint::auto_mask::Settings::flags, blender::ed::sculpt_paint::gather_brush_nodes(), blender::ed::sculpt_paint::image::ops::paint::TexturePaintData::image_data, blender::IMAGE_PAINT_BRUSH_TYPE_DRAW, blender::IMAGE_PAINT_BRUSH_TYPE_MASK, blender::ToolSettings::imapaint, blender::index_mask::IndexMask::is_empty(), blender::ed::sculpt_paint::auto_mask::is_enabled(), blender::ed::sculpt_paint::StrokeCache::location, blender::ed::sculpt_paint::image::ops::paint::TexturePaintData::mask_data, blender::ed::sculpt_paint::node_fully_masked_or_hidden(), blender::ImagePaintSettings::paint, PRF_scope, blender::math::project_point(), blender::Object::runtime, blender::bke::ObjectRuntime::sculpt_session, blender::ed::sculpt_paint::auto_mask::Cache::settings, blender::ed::sculpt_paint::auto_mask::stroke_cache_ensure(), blender::bke::paint::stroke_track_location(), and blender::Scene::toolsettings.
Referenced by do_brush_action(), and blender::ed::sculpt_paint::image::ops::paint::ExperimentalTexturePaintStroke::update_step().
|
static |
Definition at line 774 of file paint_image_ops_paint.cc.
References blender::BKE_paint_brush_for_read(), blender::BKE_paint_get_active_from_context(), C, blender::CTX_wm_region_view3d(), blender::wmOperator::customdata, get_paint_stroke(), blender::bke::brush::implements_3d_texture_paint(), blender::None, blender::wmOperator::ptr, blender::RNA_enum_get(), blender::U, and USER_EXPERIMENTAL_TEST.
Referenced by get_paint_stroke(), paint_cancel(), paint_invoke(), and paint_modal().
|
static |
Definition at line 63 of file paint_image_ops_paint.cc.
References C, blender::CTX_wm_region(), blender::GPU_blend(), blender::GPU_BLEND_ALPHA, blender::GPU_BLEND_NONE, blender::GPU_line_smooth(), blender::GPU_line_width(), blender::GPU_PRIM_LINES, blender::GPU_SHADER_3D_UNIFORM_COLOR, blender::GPU_vertformat_attr_add(), gradient_draw_line(), blender::immBegin(), blender::immBindBuiltinProgram(), blender::immEnd(), blender::immUnbindProgram(), blender::immUniformColor4ub(), blender::immVertex2f(), blender::immVertex2fv(), blender::immVertexFormat(), blender::ed::sculpt_paint::image::ops::paint::PaintGradientData::start_mouse, blender::ARegion::winrct, blender::rcti::xmin, and blender::rcti::ymin.
Referenced by gradient_draw_line(), blender::ed::sculpt_paint::image::ops::paint::ImagePaintStroke::test_start(), and blender::ed::sculpt_paint::image::ops::paint::TexturePaintStroke::test_start().
|
static |
Definition at line 885 of file paint_image_ops_paint.cc.
References C, blender::ed::sculpt_paint::PaintStroke::cancel(), blender::CTX_wm_manager(), blender::ED_image_undo_restore(), get_paint_stroke(), paint_cancel(), blender::wmWindowManager::runtime, blender::UndoStack::step_init, and blender::bke::WindowManagerRuntime::undo_stack.
Referenced by paint_cancel(), and blender::PAINT_OT_image_paint().
|
static |
Definition at line 854 of file paint_image_ops_paint.cc.
References C, check_preconditions(), create_paint_stroke(), blender::wmOperator::customdata, blender::ed::sculpt_paint::PaintStroke::exec(), blender::OPERATOR_CANCELLED, paint_exec(), and should_check_before_stroke_creation().
Referenced by paint_exec(), and blender::PAINT_OT_image_paint().
|
static |
Definition at line 824 of file paint_image_ops_paint.cc.
References blender::BLI_assert(), C, check_preconditions(), create_paint_stroke(), blender::wmOperator::customdata, blender::ed::sculpt_paint::PaintStroke::finish(), get_paint_stroke(), blender::wmOperatorType::modal, blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, OPERATOR_RETVAL_CHECK, blender::OPERATOR_RUNNING_MODAL, paint_invoke(), should_check_before_stroke_creation(), blender::wmOperator::type, and blender::WM_event_add_modal_handler().
Referenced by paint_invoke(), and blender::PAINT_OT_image_paint().
|
static |
Definition at line 872 of file paint_image_ops_paint.cc.
References C, blender::wmOperator::customdata, ELEM, get_paint_stroke(), blender::ed::sculpt_paint::PaintStroke::modal(), blender::OPERATOR_CANCELLED, blender::OPERATOR_FINISHED, and paint_modal().
Referenced by paint_modal(), and blender::PAINT_OT_image_paint().
|
static |
Definition at line 791 of file paint_image_ops_paint.cc.
References blender::BKE_paint_brush_for_read(), blender::BKE_paint_get_active_from_context(), C, blender::CTX_wm_region_view3d(), blender::bke::brush::implements_3d_texture_paint(), blender::None, blender::wmOperator::ptr, blender::RNA_enum_get(), should_check_before_stroke_creation(), blender::U, and USER_EXPERIMENTAL_TEST.
Referenced by paint_exec(), paint_invoke(), and should_check_before_stroke_creation().
|
static |
Definition at line 567 of file paint_image_ops_paint.cc.
References blender::BKE_brush_unprojected_size_set(), blender::BKE_brush_use_locked_size(), blender::BKE_brush_use_size_pressure(), blender::BKE_curvemapping_evaluateF(), blender::BKE_paint_brush(), blender::BRUSH_HARDNESS_PRESSURE, blender::BRUSH_STROKE_ANCHORED, blender::SculptSession::cache, blender::ed::sculpt_paint::StrokeCache::first_time, blender::ed::sculpt_paint::StrokeCache::hardness, blender::ed::sculpt_paint::StrokeCache::initial_radius, blender::ed::sculpt_paint::PaintStroke::StrokeStep::location, blender::ed::sculpt_paint::StrokeCache::location, blender::ed::sculpt_paint::PaintStroke::StrokeStep::mouse, blender::ed::sculpt_paint::StrokeCache::mouse, blender::ed::sculpt_paint::PaintStroke::StrokeStep::mouse_event, blender::ed::sculpt_paint::StrokeCache::mouse_event, blender::ed::sculpt_paint::object_space_radius_get(), blender::paint_calc_object_space_radius(), blender::ed::sculpt_paint::paint_supports_dynamic_size(), blender::bke::PaintRuntime::pixel_radius, blender::ed::sculpt_paint::PaintStroke::StrokeStep::pressure, blender::ed::sculpt_paint::StrokeCache::pressure, blender::ed::sculpt_paint::StrokeCache::radius, blender::ed::sculpt_paint::StrokeCache::radius_squared, stroke_cache_update(), blender::ed::sculpt_paint::stroke_is_first_brush_step_of_symmetry_pass(), blender::Texture3D, blender::ed::sculpt_paint::PaintStroke::StrokeStep::tilt, blender::ed::sculpt_paint::StrokeCache::tilt, and blender::ed::sculpt_paint::StrokeCache::vc.
Referenced by stroke_cache_update(), and blender::ed::sculpt_paint::image::ops::paint::ExperimentalTexturePaintStroke::update_step().