mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 00:56:45 +02:00
fix windows warning and change QByteArray initializer to match documented prototype
This commit is contained in:
parent
04772f6e5d
commit
95a63cf131
1 changed files with 1 additions and 1 deletions
|
@ -1022,7 +1022,7 @@ void ImportHeightfieldTool::apply() {
|
||||||
|
|
||||||
QByteArray color;
|
QByteArray color;
|
||||||
if (buffer->getColor().isEmpty()) {
|
if (buffer->getColor().isEmpty()) {
|
||||||
const int WHITE_VALUE = 0xFF;
|
const char WHITE_VALUE = 0xFF;
|
||||||
color = QByteArray(height.size() * DataBlock::COLOR_BYTES, WHITE_VALUE);
|
color = QByteArray(height.size() * DataBlock::COLOR_BYTES, WHITE_VALUE);
|
||||||
} else {
|
} else {
|
||||||
color = buffer->getUnextendedColor();
|
color = buffer->getUnextendedColor();
|
||||||
|
|
Loading…
Reference in a new issue