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 'intern/cycles/subd/subd_patch.h')
-rw-r--r--intern/cycles/subd/subd_patch.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/subd/subd_patch.h b/intern/cycles/subd/subd_patch.h
index 2e3484f95e3..8fe423bc94d 100644
--- a/intern/cycles/subd/subd_patch.h
+++ b/intern/cycles/subd/subd_patch.h
@@ -24,6 +24,10 @@ CCL_NAMESPACE_BEGIN
class Patch {
public:
+ Patch() : patch_index(0), shader(0), from_ngon(false)
+ {
+ }
+
virtual ~Patch() = default;
virtual void eval(float3 *P, float3 *dPdu, float3 *dPdv, float3 *N, float u, float v) = 0;