SMU-SIS / ksketch2

K-Sketch Animation Sketching System
2 stars 0 forks source link

Disappearing objects when loading saved sketches #44

Closed nczakaria closed 8 years ago

rc-davis commented 9 years ago

I am reopening this, because I have experienced this problem again.

Look for sketch "X-Mas 2014-A"on the web. This contains a single group with an instantaneous move at time 0. The group contains 7 objects that appear at different times. Below is a list of the objects and the order in which I drew them.

  1. "The"
  2. "Christmas"
  3. "Story"
  4. "(short version)"
  5. Christmas tree (lower left corner)
  6. Toy soldier (lower right corner)
  7. Candy cane (left of object 4, animated)

Each object has many strokes. Object 6 is invisible when you open the sketch. Since this object may be hard to find in the file, I will tell you a few other things that may help you find it.

nczakaria commented 9 years ago

Traces for when a group's center is updated KGroup.as > updateCenter() > Line 240

updateCenter() function is called in 2 places

  1. When grouping takes place
    • KGroupingUtil.as > _groupObjects() > Line 157
  2. When a child object is added to the group as its parent
    • KObject.as > set parent() > Line 140

To find all traces, do a search for "//TRACE GROUP CENTROID"

rc-davis commented 9 years ago

This issue has been moved to Pivotal tracker Story 89069384