bugfix [#24774] Lattice modifier+Dupligroup+Texture solid=weird result
new 2.5x code was not passing group recalc flags onto objects within them.
This commit is contained in:
@@ -364,17 +364,22 @@ void group_handle_recalc_and_update(Scene *scene, Object *UNUSED(parent), Group
|
||||
scene->r.cfra= cfrao;
|
||||
}
|
||||
else
|
||||
#endif
|
||||
#else
|
||||
{
|
||||
/* only do existing tags, as set by regular depsgraph */
|
||||
/* use 2 loops to avoid updating objects multiple times */
|
||||
for(go= group->gobject.first; go; go= go->next) {
|
||||
if(go->ob) {
|
||||
if(go->ob->recalc) {
|
||||
object_handle_update(scene, go->ob);
|
||||
}
|
||||
if(go->ob && go->recalc) {
|
||||
go->ob->recalc |= go->recalc;
|
||||
}
|
||||
}
|
||||
|
||||
for(go= group->gobject.first; go; go= go->next) {
|
||||
if(go->ob && go->recalc) {
|
||||
object_handle_update(scene, go->ob);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Object *group_get_member_with_action(Group *group, bAction *act)
|
||||
|
||||
@@ -40,8 +40,8 @@ typedef struct GroupObject {
|
||||
struct GroupObject *next, *prev;
|
||||
struct Object *ob;
|
||||
void *lampren; /* used while render */
|
||||
int recalc; /* copy of ob->recalc, used to set animated groups OK */
|
||||
int pad;
|
||||
short recalc; /* copy of ob->recalc, used to set animated groups OK */
|
||||
char pad[6];
|
||||
} GroupObject;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user