[Bf-blender-cvs] [82d7719c502] temp-geometry-nodes-extrude-mesh: Give blenlib color class a default value so T() works in templates
Hans Goudey
noreply at git.blender.org
Wed Jan 5 00:53:51 CET 2022
Commit: 82d7719c5022f6cfb30286542a4bbe3f27a0099a
Author: Hans Goudey
Date: Tue Jan 4 17:22:21 2022 -0600
Branches: temp-geometry-nodes-extrude-mesh
https://developer.blender.org/rB82d7719c5022f6cfb30286542a4bbe3f27a0099a
Give blenlib color class a default value so T() works in templates
===================================================================
M source/blender/blenlib/BLI_color.hh
===================================================================
diff --git a/source/blender/blenlib/BLI_color.hh b/source/blender/blenlib/BLI_color.hh
index dce625777b9..dd2faec8455 100644
--- a/source/blender/blenlib/BLI_color.hh
+++ b/source/blender/blenlib/BLI_color.hh
@@ -96,7 +96,7 @@ std::ostream &operator<<(std::ostream &stream, const eSpace &space);
/** Template class to store RGBA values with different precision, space and alpha association. */
template<typename ChannelStorageType, eSpace Space, eAlpha Alpha> class ColorRGBA {
public:
- ChannelStorageType r, g, b, a;
+ ChannelStorageType r = 0, g = 0, b = 0, a = 1;
constexpr ColorRGBA() = default;
constexpr ColorRGBA(const ChannelStorageType rgba[4])
More information about the Bf-blender-cvs
mailing list