Object types like empties, cameras or lamps will just end up as empty preview
images. We can think about ways to visualize them still, but meanwhile, don't
create such an empty preview.
Details
Diff Detail
- Repository
- rB Blender
- Branch
- temp-object-data-preview-check (branched from master)
- Build Status
Buildable 12671 Build 12671: arc lint + arc unit
Event Timeline
- Maybe after merging in the base branch (which I branched this one off...)
Edit: Finally that did the trick. Makes little sense but well, that's arc...
Sorry for the noise.
This patch has an approved status yet it was not committed yet. So I'm assuming the other reviewers are blocking. Updating the reviewers list to reflect that. This way the patch show as pending still.
| source/blender/makesdna/DNA_object_types.h | ||
|---|---|---|
| 473 | What is the difference between "geometry" and "real geometry"? | |
| source/blender/makesdna/DNA_object_types.h | ||
|---|---|---|
| 473 | We could just call it OB_TYPE_HAS_GEOMETRY or OB_TYPE_SUPPORTS_GEOMETRY or OB_TYPE_IS_GEOMETRY or ... :) Maybe I'm being pedantic calling it "real" geometry, but thing is that even empties or cameras and such have some geometry for drawing (stored in a GPU batch). But that is of course not what we refer to here. | |
| source/blender/makesdna/DNA_object_types.h | ||
|---|---|---|
| 473 |
Indeed, I wouldn't refer to that as the object "having geometry". When you throw these two kinds of geometry onto one pile, you also get confusion about what "renderable geometry" means -- does a mesh with hidden faces have "renderable geometry"? Or a mesh object without any vertices? I think that OB_TYPE_IS_GEOMETRY is the clearest. Some object types are geometry types, others are not, and IMO that should be unambiguous. | |
On second thought, maybe it's better to make this "enable/disable preview" switch more explicit, and not just let it be related to having geometry or not. The current previews for worlds can work quite well:
I'd be more happy with those than with previewless ones.
Also Actions don't have geometry, but we do have preview rendering code in place to generate those previews.
This patch is only for Object assets, so that objects with non-geometry object-data (cameras, empty, etc.) do not get a preview rendered. So this patch doesn't affect worlds or actions.
:facepalm:
LGTM with the change to the macro and the avoidance of "real" geometry ;-)
