[Bf-blender-cvs] [28088dcc60a] soc-2020-production-ready-light-tree: Fixed light tree Primitive being struct and class.
Sam Kottler
noreply at git.blender.org
Wed Jun 10 01:20:49 CEST 2020
Commit: 28088dcc60a3b5e0735ba92da510e76cb6f8fa2e
Author: Sam Kottler
Date: Tue Jun 9 17:20:18 2020 -0600
Branches: soc-2020-production-ready-light-tree
https://developer.blender.org/rB28088dcc60a3b5e0735ba92da510e76cb6f8fa2e
Fixed light tree Primitive being struct and class.
===================================================================
M intern/cycles/render/light_tree.h
===================================================================
diff --git a/intern/cycles/render/light_tree.h b/intern/cycles/render/light_tree.h
index 2aa746b4679..08c9797c828 100644
--- a/intern/cycles/render/light_tree.h
+++ b/intern/cycles/render/light_tree.h
@@ -187,7 +187,8 @@ struct BVHPrimitiveInfo {
};
/* A custom pointer struct that points to an emissive triangle or a lamp. */
-struct Primitive {
+class Primitive {
+ public:
/* If prim_id >= 0 then the primitive is a triangle and prim_id is a global
* triangle index.
* If prim_id < 0 then the primitive is a lamp and -prim_id-1 is an index
More information about the Bf-blender-cvs
mailing list