Assets: disable automatic preview generation for node groups
The current preview generation is more confusing than useful. Therefore it is better to disable it until better preview generation methods are found. Differential Revision: https://developer.blender.org/D13728
This commit is contained in:
@@ -1703,7 +1703,10 @@ bool ED_preview_id_is_supported(const ID *id)
|
|||||||
if (id == nullptr) {
|
if (id == nullptr) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
if (GS(id->name) == ID_NT) {
|
||||||
|
/* Node groups don't support standard preview generation. */
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (GS(id->name) == ID_OB) {
|
if (GS(id->name) == ID_OB) {
|
||||||
return object_preview_is_type_supported((const Object *)id);
|
return object_preview_is_type_supported((const Object *)id);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user