Merge branch 'blender-v4.2-release'

This commit is contained in:
Aras Pranckevicius
2024-06-14 12:46:10 +03:00
4 changed files with 8 additions and 1 deletions

View File

@@ -390,6 +390,10 @@ static std::shared_ptr<DictionaryValue> write_blob_simple_gspan(BlobWriter &blob
return read_blob_raw_data_with_endian(
blob_reader, io_data, sizeof(float), r_data.size() * 4, r_data.data());
}
if (type.is<math::Quaternion>()) {
return read_blob_raw_data_with_endian(
blob_reader, io_data, sizeof(float), r_data.size() * 4, r_data.data());
}
return false;
}

View File

@@ -50,6 +50,8 @@ void main()
vec2 pos1 = round(vec2(strip.left_handle, strip.bottom) * view_to_pixel);
vec2 pos2 = round(vec2(strip.right_handle, strip.top) * view_to_pixel);
pos2.x -= 1.0;
/* Make sure strip is at least 1px wide. */
pos2.x = max(pos2.x, pos1.x + 1.0);
vec2 size = (pos2 - pos1) * 0.5;
vec2 center = (pos1 + pos2) * 0.5;
vec2 pos = round(co * view_to_pixel);

View File

@@ -1110,7 +1110,7 @@ void mix_baked_data_item(const eNodeSocketDatatype socket_type,
case SOCK_ROTATION:
case SOCK_RGBA:
case SOCK_MATRIX: {
const CPPType &type = node_geo_simulation_cc::get_simulation_item_cpp_type(socket_type);
const CPPType &type = *bke::socket_type_to_geo_nodes_base_cpp_type(socket_type);
SocketValueVariant prev_value_variant = *static_cast<const SocketValueVariant *>(prev);
SocketValueVariant next_value_variant = *static_cast<const SocketValueVariant *>(next);
if (prev_value_variant.is_context_dependent_field() ||

View File

@@ -96,6 +96,7 @@ static void node_gather_link_searches(GatherLinkSearchOpParams &params)
socket,
&node,
static_cast<bNodeSocket *>(node.inputs.first));
break;
}
}