Fixed bevels going mentally insane on duplicate

This commit is contained in:
andreja6
2018-10-26 13:15:54 -07:00
parent c9bb2ae72b
commit ff5b855e12
3 changed files with 4 additions and 2 deletions

View File

@@ -27,7 +27,7 @@ std::vector<PROPGRIDITEM> PVInstance::getProperties()
"Item", "Item",
"NameShown", "NameShown",
"This chooses whether the item name is shown", "This chooses whether the item name is shown",
false, nameShown,
PIT_CHECK)); PIT_CHECK));
return properties; return properties;
} }

View File

@@ -56,7 +56,7 @@ void PartInstance::postRender(RenderDevice *rd)
} }
} }
PartInstance::PartInstance(const PartInstance &oinst) PartInstance::PartInstance(const PartInstance &oinst) : _bevelSize(0.07f), _parseVert(0), _debugTimer(0)
{ {
PVInstance::PVInstance(oinst); PVInstance::PVInstance(oinst);
//name = oinst.name; //name = oinst.name;
@@ -77,6 +77,7 @@ PartInstance::PartInstance(const PartInstance &oinst)
left = oinst.left; left = oinst.left;
bottom = oinst.bottom; bottom = oinst.bottom;
shape = oinst.shape; shape = oinst.shape;
changed = true;
} }
void PartInstance::setSize(Vector3 newSize) void PartInstance::setSize(Vector3 newSize)

View File

@@ -1342,6 +1342,7 @@ void Demo::onGraphics(RenderDevice* rd) {
rd->afterPrimitive(); rd->afterPrimitive();
rd->popState(); rd->popState();
renderDevice->pop2D(); renderDevice->pop2D();
debugAssertGLOk();
} }
void Demo::onKeyPressed(int key) void Demo::onKeyPressed(int key)