[Help] Crash When not calling setWorldGeometry(...)

kungfoomasta

23-10-2006 09:07:22

I'm making my own terrain editor, but PLSM is crashing when the app loads. This problem does not exist if I make a call to "setWorldGeometry(...)". Although I can call setWorldGeometry followed by clearScene (or setOption("ResetScene",...) to get a blank scene, it's not a very healthy solution.

I'm not exactly sure, but I believe the problem is solved when calling setWorldGeometry because that function makes a call to "Init()", which creates new instances of all of the various managers. If this is the case, is there a way to call the "Init()" function without calling "setWorldGeometry(...)"? Can we add a call to Init somewhere, or add it as a SetOption method, so that Terrain editors don't have to initally load and erase a terrain to avoid crashing?

KungFooMasta

tuan kuranes

23-10-2006 14:02:23

I 'll try loading an empty setWorldGeometry to init() plm2.

_Archic

15-11-2006 17:30:40

Very nice solution, thanx :-)