Merge branch 'blender-v3.5-release'
This commit is contained in:
commit
7eefdad051
@ -281,6 +281,12 @@ static bool find_fcurve_segment(FCurve *fcu,
|
||||
ListBase find_fcurve_segments(FCurve *fcu)
|
||||
{
|
||||
ListBase segments = {NULL, NULL};
|
||||
|
||||
/* Ignore baked curves. */
|
||||
if (!fcu->bezt) {
|
||||
return segments;
|
||||
}
|
||||
|
||||
int segment_start_idx = 0;
|
||||
int segment_len = 0;
|
||||
int current_index = 0;
|
||||
|
@ -703,7 +703,7 @@ static void draw_fcurve_curve_samples(bAnimContext *ac,
|
||||
const uint shdr_pos,
|
||||
const bool draw_extrapolation)
|
||||
{
|
||||
if (!draw_extrapolation) {
|
||||
if (!draw_extrapolation && fcu->totvert == 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -816,7 +816,7 @@ static bool fcurve_can_use_simple_bezt_drawing(FCurve *fcu)
|
||||
static void draw_fcurve_curve_bezts(
|
||||
bAnimContext *ac, ID *id, FCurve *fcu, View2D *v2d, uint pos, const bool draw_extrapolation)
|
||||
{
|
||||
if (!draw_extrapolation) {
|
||||
if (!draw_extrapolation && fcu->totvert == 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -263,8 +263,11 @@ static int node_clipboard_paste_exec(bContext *C, wmOperator *op)
|
||||
const float2 offset = (mouse_location - center) / UI_SCALE_FAC;
|
||||
|
||||
for (bNode *new_node : node_map.values()) {
|
||||
new_node->locx += offset.x;
|
||||
new_node->locy += offset.y;
|
||||
/* Skip the offset for parented nodes since the location is in parent space. */
|
||||
if (new_node->parent == nullptr) {
|
||||
new_node->locx += offset.x;
|
||||
new_node->locy += offset.y;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user