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:
authorJacques Lucke <jacques@blender.org>2021-04-08 16:51:27 +0300
committerJacques Lucke <jacques@blender.org>2021-04-08 16:51:39 +0300
commitf0317911850f07c75aa2e10e371b69b135194ac6 (patch)
treeb1323db6a11fc6e2729104d8f9af7118743b04df /source/blender/freestyle/intern/scene_graph
parent89b3c9da48cf685361105df1ca2e9ed27ef240ae (diff)
Cleanup: modernize-use-equals-default
This was missing from rB19dfb6ea1f6745c0dbc2ce21839c30184b553878.
Diffstat (limited to 'source/blender/freestyle/intern/scene_graph')
-rw-r--r--source/blender/freestyle/intern/scene_graph/NodeCamera.cpp11
-rw-r--r--source/blender/freestyle/intern/scene_graph/NodeCamera.h2
2 files changed, 1 insertions, 12 deletions
diff --git a/source/blender/freestyle/intern/scene_graph/NodeCamera.cpp b/source/blender/freestyle/intern/scene_graph/NodeCamera.cpp
index 4fc1f227172..cb30a661aaa 100644
--- a/source/blender/freestyle/intern/scene_graph/NodeCamera.cpp
+++ b/source/blender/freestyle/intern/scene_graph/NodeCamera.cpp
@@ -105,17 +105,6 @@ NodeOrthographicCamera::NodeOrthographicCamera(
projection_matrix_[11] = -(zFar + zNear) / (zFar - zNear);
}
-NodeOrthographicCamera::NodeOrthographicCamera(const NodeOrthographicCamera &iBrother)
- : NodeCamera(iBrother),
- left_(iBrother.left_),
- right_(iBrother.right_),
- bottom_(iBrother.bottom_),
- top_(iBrother.top_),
- zNear_(iBrother.zNear_),
- zFar_(iBrother.zFar_)
-{
-}
-
NodePerspectiveCamera::NodePerspectiveCamera() : NodeCamera(NodeCamera::PERSPECTIVE)
{
}
diff --git a/source/blender/freestyle/intern/scene_graph/NodeCamera.h b/source/blender/freestyle/intern/scene_graph/NodeCamera.h
index cc7b1f7f67c..9e3f9046e39 100644
--- a/source/blender/freestyle/intern/scene_graph/NodeCamera.h
+++ b/source/blender/freestyle/intern/scene_graph/NodeCamera.h
@@ -136,7 +136,7 @@ class NodeOrthographicCamera : public NodeCamera {
return zFar_;
}
- NodeOrthographicCamera(const NodeOrthographicCamera &iBrother);
+ NodeOrthographicCamera(const NodeOrthographicCamera &iBrother) = default;
private:
double left_;