static void sgCObject::DeleteObject(sgCObject* obj)
Description:
Deletes the object.
Arguments:
obj - the object to be deleted.
Returned value:
No values.
Note:
You MUST delete the object when the work with it is over and if the object wasn't added to the scene.
If the object was added to the scene you CAN'T delete it.
If the object was added to the scene and then deleted, and these actions were saved in the Undo-Redo history, the object CAN'T be deleted.
If the object was added to the scene and then deleted, and these actions were not saved in the Undo-Redo history, the object MUST be deleted.
See also:
Objects hierarchy sgCObject methods sgCScene::AttachObject sgCScene::DetachObject sgCScene::StartUndoGroup sgCScene::EndUndoGroup