Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/io/gpencil/intern')
-rw-r--r--source/blender/io/gpencil/intern/gpencil_io_base.hh2
-rw-r--r--source/blender/io/gpencil/intern/gpencil_io_export_pdf.hh9
-rw-r--r--source/blender/io/gpencil/intern/gpencil_io_export_svg.hh16
-rw-r--r--source/blender/io/gpencil/intern/gpencil_io_import_base.hh2
-rw-r--r--source/blender/io/gpencil/intern/gpencil_io_import_svg.hh4
5 files changed, 13 insertions, 20 deletions
diff --git a/source/blender/io/gpencil/intern/gpencil_io_base.hh b/source/blender/io/gpencil/intern/gpencil_io_base.hh
index 6437796648d..09557cd7a4d 100644
--- a/source/blender/io/gpencil/intern/gpencil_io_base.hh
+++ b/source/blender/io/gpencil/intern/gpencil_io_base.hh
@@ -49,7 +49,7 @@ class GpencilIO {
public:
GpencilIO(const GpencilIOParams *iparams);
- void frame_number_set(const int value);
+ void frame_number_set(int value);
void prepare_camera_params(Scene *scene, const GpencilIOParams *iparams);
protected:
diff --git a/source/blender/io/gpencil/intern/gpencil_io_export_pdf.hh b/source/blender/io/gpencil/intern/gpencil_io_export_pdf.hh
index 18de321914c..5de22530fec 100644
--- a/source/blender/io/gpencil/intern/gpencil_io_export_pdf.hh
+++ b/source/blender/io/gpencil/intern/gpencil_io_export_pdf.hh
@@ -61,16 +61,13 @@ class GpencilExporterPDF : public GpencilExporter {
* Export a stroke using poly-line or polygon
* \param do_fill: True if the stroke is only fill
*/
- void export_stroke_to_polyline(bGPDlayer *gpl,
- bGPDstroke *gps,
- const bool is_stroke,
- const bool do_fill,
- const bool normalize);
+ void export_stroke_to_polyline(
+ bGPDlayer *gpl, bGPDstroke *gps, bool is_stroke, bool do_fill, bool normalize);
/**
* Set color.
* \param do_fill: True if the stroke is only fill.
*/
- void color_set(bGPDlayer *gpl, const bool do_fill);
+ void color_set(bGPDlayer *gpl, bool do_fill);
};
} // namespace blender::io::gpencil
diff --git a/source/blender/io/gpencil/intern/gpencil_io_export_svg.hh b/source/blender/io/gpencil/intern/gpencil_io_export_svg.hh
index b3175978072..8b88e9dc142 100644
--- a/source/blender/io/gpencil/intern/gpencil_io_export_svg.hh
+++ b/source/blender/io/gpencil/intern/gpencil_io_export_svg.hh
@@ -69,12 +69,8 @@ class GpencilExporterSVG : public GpencilExporter {
* \param size: Size of the text
* \param hexcolor: Color of the text
*/
- static void add_text(pugi::xml_node node,
- float x,
- float y,
- std::string text,
- const float size,
- std::string hexcolor);
+ static void add_text(
+ pugi::xml_node node, float x, float y, std::string text, float size, std::string hexcolor);
private:
/** XML doc. */
@@ -96,7 +92,7 @@ class GpencilExporterSVG : public GpencilExporter {
void export_stroke_to_path(struct bGPDlayer *gpl,
struct bGPDstroke *gps,
pugi::xml_node node_gpl,
- const bool do_fill);
+ bool do_fill);
/**
* Export a stroke using poly-line or polygon
@@ -106,8 +102,8 @@ class GpencilExporterSVG : public GpencilExporter {
void export_stroke_to_polyline(struct bGPDlayer *gpl,
struct bGPDstroke *gps,
pugi::xml_node node_gpl,
- const bool is_stroke,
- const bool do_fill);
+ bool is_stroke,
+ bool do_fill);
/**
* Set color SVG string for stroke
@@ -117,7 +113,7 @@ class GpencilExporterSVG : public GpencilExporter {
void color_string_set(struct bGPDlayer *gpl,
struct bGPDstroke *gps,
pugi::xml_node node_gps,
- const bool do_fill);
+ bool do_fill);
/** Convert a color to Hex value (#FFFFFF). */
std::string rgb_to_hexstr(const float color[3]);
diff --git a/source/blender/io/gpencil/intern/gpencil_io_import_base.hh b/source/blender/io/gpencil/intern/gpencil_io_import_base.hh
index 7d6fad2340b..31ded8234c8 100644
--- a/source/blender/io/gpencil/intern/gpencil_io_import_base.hh
+++ b/source/blender/io/gpencil/intern/gpencil_io_import_base.hh
@@ -33,7 +33,7 @@ class GpencilImporter : public GpencilIO {
protected:
struct Object *create_object();
- int32_t create_material(const char *name, const bool stroke, const bool fill);
+ int32_t create_material(const char *name, bool stroke, bool fill);
private:
};
diff --git a/source/blender/io/gpencil/intern/gpencil_io_import_svg.hh b/source/blender/io/gpencil/intern/gpencil_io_import_svg.hh
index 99e8b1ed4fd..24e80563a14 100644
--- a/source/blender/io/gpencil/intern/gpencil_io_import_svg.hh
+++ b/source/blender/io/gpencil/intern/gpencil_io_import_svg.hh
@@ -47,10 +47,10 @@ class GpencilImporterSVG : public GpencilImporter {
struct bGPDframe *gpf,
struct NSVGshape *shape,
struct NSVGpath *path,
- const int32_t mat_index,
+ int32_t mat_index,
const float matrix[4][4]);
- void convert_color(const int32_t color, float r_linear_rgba[4]);
+ void convert_color(int32_t color, float r_linear_rgba[4]);
};
} // namespace blender::io::gpencil