Game Development Community

Parent::inspectPostApply not called from InteriorInstance

by Tom Spilman · in Torque Game Engine · 03/01/2005 (10:25 pm) · 0 replies

Parent::inspectPostApply() and Parent::inspectPreApply() seem to not be called from the overloaded functions of many of the SimObject derived classes. The most bothersome case has to do with interiors.

If you look at InteriorInstance::inspectPostApply() it does not call Parent::inspectPostApply(). This is why when you change the interior position via the transform group of the mission editor inspector, the red box (this is the collision box i assume?) is not updated.

If you simply add the line Parent::inspectPostApply(); at the top of the function it works perfectly.

About the author

Tom is a programmer and co-owner of Sickhead Games, LLC.