mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 22:16:58 +02:00
move multi-line function out of header
This commit is contained in:
parent
97eeb20625
commit
7d707447ca
2 changed files with 8 additions and 6 deletions
|
@ -168,3 +168,10 @@ void PolyVoxEntityItem::debugDump() const {
|
||||||
qCDebug(entities) << " dimensions:" << debugTreeVector(getDimensions());
|
qCDebug(entities) << " dimensions:" << debugTreeVector(getDimensions());
|
||||||
qCDebug(entities) << " getLastEdited:" << debugTime(getLastEdited(), now);
|
qCDebug(entities) << " getLastEdited:" << debugTime(getLastEdited(), now);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PolyVoxEntityItem::setVoxelSurfaceStyle(PolyVoxSurfaceStyle voxelSurfaceStyle) {
|
||||||
|
if (voxelSurfaceStyle == _voxelSurfaceStyle) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
updateVoxelSurfaceStyle(voxelSurfaceStyle);
|
||||||
|
}
|
||||||
|
|
|
@ -61,12 +61,7 @@ class PolyVoxEntityItem : public EntityItem {
|
||||||
SURFACE_EDGED_CUBIC
|
SURFACE_EDGED_CUBIC
|
||||||
};
|
};
|
||||||
|
|
||||||
void setVoxelSurfaceStyle(PolyVoxSurfaceStyle voxelSurfaceStyle) {
|
void setVoxelSurfaceStyle(PolyVoxSurfaceStyle voxelSurfaceStyle);
|
||||||
if (voxelSurfaceStyle == _voxelSurfaceStyle) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
updateVoxelSurfaceStyle(voxelSurfaceStyle);
|
|
||||||
}
|
|
||||||
// this other version of setVoxelSurfaceStyle is needed for SET_ENTITY_PROPERTY_FROM_PROPERTIES
|
// this other version of setVoxelSurfaceStyle is needed for SET_ENTITY_PROPERTY_FROM_PROPERTIES
|
||||||
void setVoxelSurfaceStyle(uint16_t voxelSurfaceStyle) { setVoxelSurfaceStyle((PolyVoxSurfaceStyle) voxelSurfaceStyle); }
|
void setVoxelSurfaceStyle(uint16_t voxelSurfaceStyle) { setVoxelSurfaceStyle((PolyVoxSurfaceStyle) voxelSurfaceStyle); }
|
||||||
virtual PolyVoxSurfaceStyle getVoxelSurfaceStyle() const { return _voxelSurfaceStyle; }
|
virtual PolyVoxSurfaceStyle getVoxelSurfaceStyle() const { return _voxelSurfaceStyle; }
|
||||||
|
|
Loading…
Reference in a new issue