Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/sculpt_paint/sculpt_transform.c
| Show First 20 Lines • Show All 320 Lines • ▼ Show 20 Lines | else { | ||||
| if (total > 0) { | if (total > 0) { | ||||
| mul_v3_fl(avg, 1.0f / total); | mul_v3_fl(avg, 1.0f / total); | ||||
| copy_v3_v3(ss->pivot_pos, avg); | copy_v3_v3(ss->pivot_pos, avg); | ||||
| } | } | ||||
| MEM_SAFE_FREE(nodes); | MEM_SAFE_FREE(nodes); | ||||
| } | } | ||||
| /* Update the viewport navigation rotation origin. */ | |||||
sergey: What line of code this comment belongs to?
Don't think tagging has anything to do with the… | |||||
| UnifiedPaintSettings *ups = &CTX_data_tool_settings(C)->unified_paint_settings; | |||||
| copy_v3_v3(ups->average_stroke_accum, ss->pivot_pos); | |||||
| ups->average_stroke_counter = 1; | |||||
| ups->last_stroke_valid = true; | |||||
| ED_region_tag_redraw(region); | ED_region_tag_redraw(region); | ||||
| WM_event_add_notifier(C, NC_GEOM | ND_SELECT, ob->data); | WM_event_add_notifier(C, NC_GEOM | ND_SELECT, ob->data); | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| static int sculpt_set_pivot_position_invoke(bContext *C, wmOperator *op, const wmEvent *event) | static int sculpt_set_pivot_position_invoke(bContext *C, wmOperator *op, const wmEvent *event) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines | |||||
What line of code this comment belongs to?
Don't think tagging has anything to do with the rotation origin, and the notifier should not be used for such things either.