Curves: Add support for proportional editing #104620
|
@ -6990,10 +6990,7 @@ class VIEW3D_PT_proportional_edit(Panel):
|
|||
else tool_settings.use_proportional_edit)
|
||||
|
||||
if context.mode != 'OBJECT':
|
||||
sub = col.column()
|
||||
# TODO: Implement connected mode for curves object
|
||||
sub.active = context.active_object.type != 'CURVES'
|
||||
sub.prop(tool_settings, "use_proportional_connected")
|
||||
col.prop(tool_settings, "use_proportional_connected")
|
||||
sub = col.column()
|
||||
sub.active = not tool_settings.use_proportional_connected
|
||||
sub.prop(tool_settings, "use_proportional_projected")
|
||||
|
|
|
@ -758,8 +758,8 @@ static void init_proportional_edit(TransInfo *t)
|
|||
else if (t->data_type == &TransConvertType_MeshUV && t->flag & T_PROP_CONNECTED) {
|
||||
/* Already calculated by uv_set_connectivity_distance. */
|
||||
}
|
||||
else if (t->data_type == &TransConvertType_Curve) {
|
||||
BLI_assert(t->obedit_type == OB_CURVES_LEGACY);
|
||||
else if (ELEM(t->data_type, &TransConvertType_Curve, &TransConvertType_Curves)) {
|
||||
BLI_assert(t->obedit_type == OB_CURVES_LEGACY || t->obedit_type == OB_CURVES);
|
||||
set_prop_dist(t, false);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue