Seems that VRML animations have been starting when the world loads for
awhile.  I fixed it today.  Attached is the new TimeSensor.java  I don't
think I broke anything else but I'm still testing.

The bug was on line 235.  A setActive event was being generated when is
wasn't susposed too.  I added the check for stopTime.time >
startTime.time...  on load a timer activated by TouchSensors usually has a
startTime = 0 and a stopTime = 0.  If anyone finds this breaks something
else please tell me.

    } else if ((now > startTime.time) && (stopTime.time > startTime.time)
&& (!isActive.value)) {
                isActive.setValue(true);
                updateFraction(now);


Since I can't currently compile the whole distribution I cannot provide a
full vrml97.jar(problems with VrmlTokenManager.java).  Maybe the Sun or
Vrml folks will integrate this change into a later release.  If someone can
currently compile the whole release then maybe they can help me.  Send me a
note if ya can compile the whole thing(tried Windows, haven't tried unix
yet)

If you compile this file then you can take the distributed jar file and
update the TimeSensor.class in it

jar -uf vrml97.jar com/sun/j3d/loaders/vrml97/impl/TimeSensor.class

-Alan Hudson

TimeSensor.java

Reply via email to