Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/gpencil/gpencil_armature.c
| Show First 20 Lines • Show All 548 Lines • ▼ Show 20 Lines | for (Base *base = view_layer->object_bases.first; base; base = base->next) { | ||||
| } | } | ||||
| } | } | ||||
| return false; | return false; | ||||
| } | } | ||||
| static int gpencil_generate_weights_exec(bContext *C, wmOperator *op) | static int gpencil_generate_weights_exec(bContext *C, wmOperator *op) | ||||
| { | { | ||||
| Depsgraph *depsgraph = CTX_data_depsgraph(C); | Depsgraph *depsgraph = CTX_data_ensure_evaluated_depsgraph(C); | ||||
| ViewLayer *view_layer = CTX_data_view_layer(C); | ViewLayer *view_layer = CTX_data_view_layer(C); | ||||
| Object *ob = CTX_data_active_object(C); | Object *ob = CTX_data_active_object(C); | ||||
| Object *ob_eval = DEG_get_evaluated_object(depsgraph, ob); | Object *ob_eval = DEG_get_evaluated_object(depsgraph, ob); | ||||
| bGPdata *gpd = (bGPdata *)ob->data; | bGPdata *gpd = (bGPdata *)ob->data; | ||||
| Object *ob_arm = NULL; | Object *ob_arm = NULL; | ||||
| const int mode = RNA_enum_get(op->ptr, "mode"); | const int mode = RNA_enum_get(op->ptr, "mode"); | ||||
| const float ratio = RNA_float_get(op->ptr, "ratio"); | const float ratio = RNA_float_get(op->ptr, "ratio"); | ||||
| ▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines | |||||