Fix T38740: multi-user metaballs not rendering in Cycles.

This commit is contained in:
Brecht Van Lommel 2014-02-21 15:03:24 +01:00
parent 5f18d863a9
commit 415adf7263
Notes: blender-bot 2023-11-20 12:14:32 +01:00
Referenced by issue #38740, Metaballs don't get rendered in Cycles when they are multi user
1 changed files with 5 additions and 1 deletions

View File

@ -38,7 +38,11 @@ CCL_NAMESPACE_BEGIN
bool BlenderSync::BKE_object_is_modified(BL::Object b_ob)
{
/* test if we can instance or if the object is modified */
if(ccl::BKE_object_is_modified(b_ob, b_scene, preview)) {
if(b_ob.type() == BL::Object::type_META) {
/* multi-user and dupli metaballs are fused, can't instance */
return true;
}
else if(ccl::BKE_object_is_modified(b_ob, b_scene, preview)) {
/* modifiers */
return true;
}