mcst-linux-kernel/patches-2024.06.26/blender-3.4.1/0010-Add_using_for_std.patch

93 lines
3.3 KiB
Diff

--- a/source/blender/gpu/intern/gpu_matrix.cc 2023-06-26 11:45:20.000000000 +0300
+++ b/source/blender/gpu/intern/gpu_matrix.cc 2023-06-27 16:53:39.207621879 +0300
@@ -20,6 +20,7 @@
#include "MEM_guardedalloc.h"
using namespace blender::gpu;
+using std::isinf;
#define MATRIX_STACK_DEPTH 32
--- a/source/blender/editors/interface/interface.cc 2023-06-26 11:45:20.000000000 +0300
+++ b/source/blender/editors/interface/interface.cc 2023-06-27 12:32:42.875258920 +0300
@@ -76,6 +76,7 @@
#include "interface_intern.h"
using blender::Vector;
+using std::isfinite;
/* prototypes. */
static void ui_but_to_pixelrect(struct rcti *rect,
--- a/source/blender/editors/mesh/meshtools.cc 2023-06-26 11:45:20.000000000 +0300
+++ b/source/blender/editors/mesh/meshtools.cc 2023-06-27 13:13:20.433597318 +0300
@@ -57,6 +57,7 @@
using blender::MutableSpan;
using blender::Span;
+using std::isfinite;
/* * ********************** no editmode!!! *********** */
--- a/source/blender/windowmanager/intern/wm_event_system.cc 2023-06-26 11:45:20.000000000 +0300
+++ b/source/blender/windowmanager/intern/wm_event_system.cc 2023-06-27 13:30:35.894951515 +0300
@@ -78,6 +78,8 @@
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_query.h"
+using std::isfinite;
+
/**
* When a gizmo is highlighted and uses click/drag events,
* this prevents mouse button press events from being passed through to other key-maps
--- a/source/blender/blenkernel/intern/gpencil_geom.cc 2023-06-26 11:45:20.000000000 +0300
+++ b/source/blender/blenkernel/intern/gpencil_geom.cc 2023-06-27 16:22:28.369386461 +0300
@@ -50,6 +50,7 @@
using blender::float3;
using blender::Span;
+using std::isfinite;
/* -------------------------------------------------------------------- */
/** \name Grease Pencil Object: Bound-box Support
--- a/source/blender/blenkernel/intern/mesh_validate.cc 2023-06-26 11:45:20.000000000 +0300
+++ b/source/blender/blenkernel/intern/mesh_validate.cc 2023-06-27 16:24:56.888419860 +0300
@@ -35,6 +35,7 @@
using blender::MutableSpan;
using blender::Span;
+using std::isfinite;
/* loop v/e are unsigned, so using max uint_32 value as invalid marker... */
#define INVALID_LOOP_EDGE_MARKER 4294967295u
--- a/source/blender/blenkernel/intern/object.cc 2023-06-26 11:45:20.000000000 +0300
+++ b/source/blender/blenkernel/intern/object.cc 2023-06-27 16:35:41.985606860 +0300
@@ -147,6 +147,7 @@
using blender::float3;
using blender::MutableSpan;
using blender::Span;
+using std::isfinite;
static CLG_LogRef LOG = {"bke.object"};
--- a/source/blender/blenkernel/intern/customdata.cc 2023-06-26 11:45:20.000000000 +0300
+++ b/source/blender/blenkernel/intern/customdata.cc 2023-06-27 13:45:54.773814073 +0300
@@ -64,6 +64,7 @@
using blender::Span;
using blender::StringRef;
using blender::Vector;
+using std::isfinite;
/* number of layers to add when growing a CustomData object */
#define CUSTOMDATA_GROW 5
--- a/source/blender/blenkernel/intern/multires.cc 2023-06-26 11:45:20.000000000 +0300
+++ b/source/blender/blenkernel/intern/multires.cc 2023-06-27 16:29:46.222332895 +0300
@@ -46,6 +46,8 @@
#include <cmath>
#include <cstring>
+using std::isnan;
+
/* MULTIRES MODIFIER */
static const int multires_grid_tot[] = {
0, 4, 9, 25, 81, 289, 1089, 4225, 16641, 66049, 263169, 1050625, 4198401, 16785409};