Fixed inconsistent behavior where sometimes parts that are not visible would remain selected and be modified.

This commit is contained in:
leo
2014-05-01 14:55:12 +00:00
parent 9c40092395
commit d2d96489ac
13 changed files with 1368 additions and 1354 deletions
+6 -16
View File
@@ -10,28 +10,18 @@
#define LC_KEY_SAVE_VERSION 1 // LeoCAD 0.73
// =============================================================================
// Object class
Object::Object(LC_OBJECT_TYPE nType)
Object::Object(lcObjectType ObjectType)
{
// m_nState = 0;
// m_strName[0] = '\0';
m_pInstructionKeys = NULL;
m_pInstructionKeys = NULL;
m_nObjectType = nType;
m_pKeyValues = NULL;
// m_pParent = NULL;
// m_pNext = NULL;
// m_pNextRender = NULL;
mObjectType = ObjectType;
m_pKeyValues = NULL;
}
Object::~Object()
{
delete []m_pKeyValues;
RemoveKeys();
delete []m_pKeyValues;
RemoveKeys();
}
bool Object::FileLoad(lcFile& file)