Fix #107186: Curve assets don't generate preview images #107214

Merged
Philipp Oeser merged 3 commits from lichtwerk/blender:107186 into main 2023-04-25 11:25:27 +02:00
1 changed files with 3 additions and 1 deletions

View File

@ -532,7 +532,8 @@ typedef enum ObjectType {
#define OB_TYPE_SUPPORT_MATERIAL(_type) \
(((_type) >= OB_MESH && (_type) <= OB_MBALL) || \
((_type) >= OB_GPENCIL_LEGACY && (_type) <= OB_VOLUME))
/** Does the object have some render-able geometry (unlike empties, cameras, etc.). */
/** Does the object have some render-able geometry (unlike empties, cameras, etc.). True for
* #OB_CURVES_LEGACY, since these often evaluate to objects with geometry. */

Ouups, "evaluates [...] evaluate [...]" not nice English :)

Ouups, "evaluates [...] evaluate [...]" not nice English :)
#define OB_TYPE_IS_GEOMETRY(_type) \
(ELEM(_type, \
OB_MESH, \
@ -540,6 +541,7 @@ typedef enum ObjectType {
OB_FONT, \
OB_MBALL, \
OB_GPENCIL_LEGACY, \

I think this needs a comment explaining why this is considered to be "geometry", since it wouldn't appear so.

I'd just update the macro description like this:

/** Does the object have some render-able geometry (unlike empties, cameras, etc.). Evaluates to true for #OB_CURVES_LEGACY, since these often evaluate to objects with geometry. */
I think this needs a comment explaining why this is considered to be "geometry", since it wouldn't appear so. I'd just update the macro description like this: ``` /** Does the object have some render-able geometry (unlike empties, cameras, etc.). Evaluates to true for #OB_CURVES_LEGACY, since these often evaluate to objects with geometry. */ ```

done

done
OB_CURVES_LEGACY, \
OB_CURVES, \
OB_POINTCLOUD, \
OB_VOLUME))