[issue] ConstraintDrawer.Remove() method do nothing
Posted: Thu Dec 10, 2015 10:32 am
Hi Norbo,
in LineDrawer class, the remove method doesn't work:
despite displayObjects is not null, the resulting cast (not sure of the desired goal here) in lineDisplayObject is always null (at least in my tests), so lines are actually not removed.
Included in patches and sources for both DemoGame (add LineDrawer to demo constructor + a few change in demo order, some unrelated) and RobotArmDemo to show the issue. Enable constraints display, press 0 on the numpad and see what happened, moving arms part could also show it ore obviously.
in LineDrawer class, the remove method doesn't work:
Code: Select all
var lineDisplayObject = displayObjects[i] as LineDisplayObject<T>;
if (lineDisplayObject != null && lineDisplayObject.LineObject.Equals(o))
Included in patches and sources for both DemoGame (add LineDrawer to demo constructor + a few change in demo order, some unrelated) and RobotArmDemo to show the issue. Enable constraints display, press 0 on the numpad and see what happened, moving arms part could also show it ore obviously.