mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 13:23:36 +02:00
Correctly wire setDrawZones
This commit is contained in:
parent
52191f922c
commit
50ba154615
2 changed files with 2 additions and 1 deletions
|
@ -35,6 +35,7 @@ ZoneOverlayManager = function(isEntityFunc, entityAddedFunc, entityRemovedFunc,
|
|||
this.setVisible = function(isVisible) {
|
||||
if (visible != isVisible) {
|
||||
visible = isVisible;
|
||||
Entities.setDrawZoneBoundaries(visible);
|
||||
for (var id in entityOverlays) {
|
||||
Overlays.editOverlay(entityOverlays[id].solid, { visible: visible });
|
||||
Overlays.editOverlay(entityOverlays[id].outline, { visible: visible });
|
||||
|
|
|
@ -90,7 +90,7 @@ void RenderableZoneEntityItem::updateGeometry() {
|
|||
}
|
||||
|
||||
void RenderableZoneEntityItem::render(RenderArgs* args) {
|
||||
if (_drawZoneBoundaries || true) {
|
||||
if (_drawZoneBoundaries) {
|
||||
switch (getShapeType()) {
|
||||
case SHAPE_TYPE_COMPOUND: {
|
||||
updateGeometry();
|
||||
|
|
Loading…
Reference in a new issue