diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2020-03-08 16:21:29 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-03-11 22:45:39 +0300 |
commit | 6cf4861c3ac09fd65a765e8f8e3584713cc5303b (patch) | |
tree | b2b104fbda65b67c56dd2a39ad812c89bc5b1ee2 /intern/cycles/render/attribute.h | |
parent | d8aa613d94caf6a3d82a8f4e9e90b9b8f5c61a7d (diff) |
Cleanup: refactor image loading to use abstract ImageLoader base class
Rather than passing around void pointers, various Blender image sources now
subclass this. OIIO is also just another type of image loader.
Also fixes T67718: Cycles viewport render crash editing point density settings
Diffstat (limited to 'intern/cycles/render/attribute.h')
-rw-r--r-- | intern/cycles/render/attribute.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/intern/cycles/render/attribute.h b/intern/cycles/render/attribute.h index 23626410ac1..351357a7f7a 100644 --- a/intern/cycles/render/attribute.h +++ b/intern/cycles/render/attribute.h @@ -54,9 +54,11 @@ class Attribute { AttributeElement element; uint flags; /* enum AttributeFlag */ - Attribute() - { - } + Attribute(ustring name, + TypeDesc type, + AttributeElement element, + Geometry *geom, + AttributePrimitive prim); ~Attribute(); void set(ustring name, TypeDesc type, AttributeElement element); void resize(Geometry *geom, AttributePrimitive prim, bool reserve_only); @@ -151,7 +153,6 @@ class Attribute { void add(const float3 &f); void add(const uchar4 &f); void add(const Transform &tfm); - void add(const ImageHandle &handle); void add(const char *data); static bool same_storage(TypeDesc a, TypeDesc b); |