Fixed textbox copy
This commit is contained in:
parent
a3fb87332b
commit
879655fbb8
2 changed files with 4 additions and 2 deletions
|
|
@ -61,6 +61,8 @@ void TextBoxCanvasComponent::load_file(cereal::PortableBinaryInputArchive& a, Ve
|
||||||
std::unique_ptr<CanvasComponent> TextBoxCanvasComponent::get_data_copy() const {
|
std::unique_ptr<CanvasComponent> TextBoxCanvasComponent::get_data_copy() const {
|
||||||
auto toRet = std::make_unique<TextBoxCanvasComponent>();
|
auto toRet = std::make_unique<TextBoxCanvasComponent>();
|
||||||
toRet->d = d;
|
toRet->d = d;
|
||||||
|
*toRet->cursor = *cursor;
|
||||||
|
toRet->textBox->set_rich_text_data(textBox->get_rich_text_data());
|
||||||
return toRet;
|
return toRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@ struct DrawingProgramCacheBVHNode {
|
||||||
|
|
||||||
class DrawingProgramCache {
|
class DrawingProgramCache {
|
||||||
public:
|
public:
|
||||||
static constexpr size_t MINIMUM_COMPONENTS_TO_START_REBUILD = 10;
|
static constexpr size_t MINIMUM_COMPONENTS_TO_START_REBUILD = 1000;
|
||||||
static constexpr size_t MAXIMUM_COMPONENTS_IN_SINGLE_NODE = 3;
|
static constexpr size_t MAXIMUM_COMPONENTS_IN_SINGLE_NODE = 50;
|
||||||
static constexpr size_t MAXIMUM_DRAW_CACHE_SURFACES = 40;
|
static constexpr size_t MAXIMUM_DRAW_CACHE_SURFACES = 40;
|
||||||
|
|
||||||
DrawingProgramCache(DrawingProgram& initDrawP);
|
DrawingProgramCache(DrawingProgram& initDrawP);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue