Maniphest T29793

Physics go crazy if frames get skipped
Closed, Resolved

Assigned To
Sergey Sharybin (sergey)
Authored By
Daniel Genrich (genscher)
Jan 4 2012, 7:05 PM
Tags
  • Physics
  • BF Blender
Subscribers
Daniel Genrich (genscher)
Sergey Sharybin (sergey)

Description

How to redo:

- Enable a physics modifier like e.g. cloth on a plane with 2 pinned verts.
- In the timeline manually enter a frame e.g. 200
Result: Mesh is exploded

Event Timeline

Daniel Genrich (genscher) edited a custom field.Jan 4 2012, 7:05 PM
Sergey Sharybin (sergey) added a comment.Jan 5 2012, 9:37 PM

As discussed in IRC, correct fix would be just do nothing if current frame isn't lastframe+1: kind of if lastframe+1 != CFRA) return result; thing.
Will check this tomorrow and if it'll be still some issues will assign to you, Daniel =)

Sergey Sharybin (sergey) added a comment.Jan 6 2012, 1:24 PM

Hi,
Got such patch for this issue: http://www.pasteall.org/27963/diff
It works but maybe there's nicer way to find out previous frame simpulation is calculated for.

Daniel, maybe you can glance at it and say if it seems fine for you? If so the same thing can be done for softbody too.

Sergey Sharybin (sergey) added a comment.Jan 9 2012, 3:08 PM

Fixed in svn rev43234. Thanks for the report, closing.

Sergey Sharybin (sergey) changed the task status from Unknown Status to Resolved.Jan 9 2012, 3:08 PM
Campbell Barton (campbellbarton) mentioned this in T48349: Cloth simulation and repeated subdividing.May 9 2016, 1:03 PM