mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 07:23:00 +02:00
These edits need to be sent reliably
This commit is contained in:
parent
d351a65999
commit
53809803dd
1 changed files with 2 additions and 2 deletions
|
@ -673,7 +673,7 @@ InsertSpannerTool::InsertSpannerTool(MetavoxelEditor* editor) :
|
||||||
|
|
||||||
void InsertSpannerTool::applyEdit(const AttributePointer& attribute, const SharedObjectPointer& spanner) {
|
void InsertSpannerTool::applyEdit(const AttributePointer& attribute, const SharedObjectPointer& spanner) {
|
||||||
MetavoxelEditMessage message = { QVariant::fromValue(InsertSpannerEdit(attribute, spanner)) };
|
MetavoxelEditMessage message = { QVariant::fromValue(InsertSpannerEdit(attribute, spanner)) };
|
||||||
Application::getInstance()->getMetavoxels()->applyEdit(message);
|
Application::getInstance()->getMetavoxels()->applyEdit(message, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
RemoveSpannerTool::RemoveSpannerTool(MetavoxelEditor* editor) :
|
RemoveSpannerTool::RemoveSpannerTool(MetavoxelEditor* editor) :
|
||||||
|
@ -857,7 +857,7 @@ void ImportHeightfieldTool::apply() {
|
||||||
_heightOffset->value(), (i / HEIGHTFIELD_BLOCK_SIZE) * scale));
|
_heightOffset->value(), (i / HEIGHTFIELD_BLOCK_SIZE) * scale));
|
||||||
|
|
||||||
MetavoxelEditMessage message = { QVariant::fromValue(InsertSpannerEdit(attribute, heightfield)) };
|
MetavoxelEditMessage message = { QVariant::fromValue(InsertSpannerEdit(attribute, heightfield)) };
|
||||||
Application::getInstance()->getMetavoxels()->applyEdit(message);
|
Application::getInstance()->getMetavoxels()->applyEdit(message, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue