Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Bug #682: Problem with removing landscape
Product:
TV3D SDK 6.5
Language:
C#
Current State:
Closed
Resolution:
Fixed
Created On:
March 28th, 2007
Last Modified:
April 7th, 2007
Reported By:
Sethergal
I create project in C#. First I create landscape
m_TVLandscape.CreateEmpty( NAME.Text,...);
Later I remove it by function:
m_TVLandscape.DeleteAll();
and then I want test if it is removed and I call
if(m_TVGlobals.GetLandscape( NAME.Text ) != null )
and it show me that landscape with name NAME.Text exist.

m_TVLandscape is MTV3D65.TVLandscape
m_TVGlobals is MTV3D65.TVGlobals

I don't know if it only in C# or in other language as well because I don't test if it work on them.

Comments:

Posted by SylvainTV on April 5th, 2007 at 8:51 PM
OK, actually DeleteAll is like ResetMesh for TVMesh, it doesn't destroy the object, but it just removes all geometry from it.

I've just added a Destroy method, that will actually destroy the object, and remove the name from the collection.