mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-05 23:07:42 -05:00
Compare commits
12 Commits
redot-4.4-
...
b8d529fac8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b8d529fac8 | ||
|
|
4d9e24d511 | ||
|
|
b47b9876cb | ||
|
|
60164fcbf8 | ||
|
|
abc59bb63e | ||
|
|
f81478a98d | ||
|
|
54fbf8ed8b | ||
|
|
65829d638a | ||
|
|
bc320db5e3 | ||
|
|
d15a36616a | ||
|
|
f49ba20319 | ||
| 087b7ee14a |
1390
.gitlab-ci.yml
Normal file
1390
.gitlab-ci.yml
Normal file
File diff suppressed because it is too large
Load Diff
@@ -2393,6 +2393,10 @@ void Image::initialize_data(const char **p_xpm) {
|
||||
} break;
|
||||
case READING_PIXELS: {
|
||||
int y = line - colormap_size - 1;
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic warning "-Wstringop-overflow=0"
|
||||
#endif
|
||||
for (int x = 0; x < size_width; x++) {
|
||||
char pixelstr[6] = { 0, 0, 0, 0, 0, 0 };
|
||||
for (int i = 0; i < pixelchars; i++) {
|
||||
@@ -2407,6 +2411,9 @@ void Image::initialize_data(const char **p_xpm) {
|
||||
}
|
||||
_put_pixelb(x, y, pixel_size, data_write, pixel);
|
||||
}
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
if (y == (size_height - 1)) {
|
||||
status = DONE;
|
||||
|
||||
@@ -32,7 +32,14 @@
|
||||
|
||||
#include "geometry_2d.h"
|
||||
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Walloc-zero"
|
||||
#endif
|
||||
#include "thirdparty/clipper2/include/clipper2/clipper.h"
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
#include "thirdparty/misc/polypartition.h"
|
||||
#define STB_RECT_PACK_IMPLEMENTATION
|
||||
#include "thirdparty/misc/stb_rect_pack.h"
|
||||
|
||||
@@ -285,6 +285,9 @@ def generate_sdk_package_versions():
|
||||
if match:
|
||||
pos = match.start()
|
||||
version_status = version_status[:pos] + "." + version_status[pos:]
|
||||
else:
|
||||
version_status = f"{version_status}.{version_info['status_version']}"
|
||||
|
||||
version_str += "-" + version_status
|
||||
|
||||
import version
|
||||
|
||||
@@ -533,6 +533,9 @@ namespace Godot.NativeInterop
|
||||
|
||||
public static partial int godotsharp_node_path_get_subname_count(in godot_node_path p_self);
|
||||
|
||||
public static partial void godotsharp_node_path_slice(scoped in godot_node_path p_self, int p_begin, int p_end,
|
||||
out godot_node_path r_result);
|
||||
|
||||
public static partial godot_bool godotsharp_node_path_is_absolute(in godot_node_path p_self);
|
||||
|
||||
public static partial godot_bool godotsharp_node_path_equals(in godot_node_path p_self, in godot_node_path p_other);
|
||||
|
||||
@@ -274,6 +274,31 @@ namespace Godot
|
||||
return NativeFuncs.godotsharp_node_path_get_subname_count(self);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the slice of the <em>NodePath</em>, from <c>begin</c> (inclusive) to <c>end</c> (exclusive), as a
|
||||
/// new <em>NodePath</em>.<br/>
|
||||
/// The absolute value of <c>begin</c> and <c>end</c> will be clamped to the sum of
|
||||
/// <see cref="NodePath.GetNameCount">GetNameCount</see> and
|
||||
/// <see cref="NodePath.GetSubNameCount">GetSubNameCount</see>, so the default value for <c>end</c> makes it
|
||||
/// slice to the end of the <em>NodePath</em> by default (i.e. <c>path.Slice(1)</c> is a shorthand for
|
||||
/// <c>path.Slice(1, path.GetNameCount() + path.GetSubNameCount())</c>).<br/>
|
||||
/// If either <c>begin</c> or <c>end</c> are negative, they will be relative to the end of the <em>NodePath</em>
|
||||
/// (i.e. <c>path.Slice(0, -2)</c> is shorthand for
|
||||
/// <c>path.Slice(0, path.GetNameCount() + path.GetSubNameCount() - 2)</c>).
|
||||
/// </summary>
|
||||
/// <param name="begin">The index of the name or subname at which to start the slice.</param>
|
||||
/// <param name="end">The index (exclusive) of the name or subname at which to end the slice.</param>
|
||||
/// <returns>A slice of the <em>NodePath</em> bounded by <c>begin</c> and <c>end</c>.</returns>
|
||||
public NodePath Slice(int begin, int end = Int32.MaxValue)
|
||||
{
|
||||
var self = (godot_node_path)NativeValue;
|
||||
|
||||
NativeFuncs.godotsharp_node_path_slice(self, begin, end, out godot_node_path slicedNodePath);
|
||||
|
||||
using (slicedNodePath)
|
||||
return new NodePath(slicedNodePath);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns <see langword="true"/> if the node path is absolute (as opposed to relative),
|
||||
/// which means that it starts with a slash character (<c>/</c>). Absolute node paths can
|
||||
|
||||
@@ -1331,6 +1331,10 @@ int32_t godotsharp_node_path_get_subname_count(const NodePath *p_self) {
|
||||
return p_self->get_subname_count();
|
||||
}
|
||||
|
||||
void godotsharp_node_path_slice(const NodePath *p_self, int32_t p_begin, int32_t p_end, NodePath *r_result) {
|
||||
memnew_placement(r_result, NodePath(p_self->slice(p_begin, p_end)));
|
||||
}
|
||||
|
||||
bool godotsharp_node_path_is_absolute(const NodePath *p_self) {
|
||||
return p_self->is_absolute();
|
||||
}
|
||||
@@ -1712,6 +1716,7 @@ static const void *unmanaged_callbacks[]{
|
||||
(void *)godotsharp_node_path_get_name_count,
|
||||
(void *)godotsharp_node_path_get_subname,
|
||||
(void *)godotsharp_node_path_get_subname_count,
|
||||
(void *)godotsharp_node_path_slice,
|
||||
(void *)godotsharp_node_path_is_absolute,
|
||||
(void *)godotsharp_node_path_equals,
|
||||
(void *)godotsharp_node_path_hash,
|
||||
|
||||
@@ -159,6 +159,7 @@ Node *SceneState::instantiate(GenEditState p_edit_state) const {
|
||||
const NodeData *nd = &nodes[0];
|
||||
|
||||
Node **ret_nodes = (Node **)alloca(sizeof(Node *) * nc);
|
||||
ret_nodes[0] = nullptr; // Sidesteps "maybe uninitialized" false-positives on GCC.
|
||||
|
||||
bool gen_node_path_cache = p_edit_state != GEN_EDIT_STATE_DISABLED && node_path_cache.is_empty();
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ name = "Redot Engine"
|
||||
major = 4
|
||||
minor = 4
|
||||
patch = 0
|
||||
status = "beta"
|
||||
status_version = 0
|
||||
status = "rc"
|
||||
status_version = 1
|
||||
module_config = ""
|
||||
website = "https://redotengine.org"
|
||||
docs = "latest"
|
||||
|
||||
Reference in New Issue
Block a user