Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
GigsD4X committed May 2, 2017
2 parents 5c44054 + 3d860fc commit 73cebe3
Show file tree
Hide file tree
Showing 3 changed files with 2,318 additions and 2,303 deletions.
9 changes: 7 additions & 2 deletions BoundingBoxModule.lua
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ end;
function AddStaticPartMonitor(Part)
-- Monitors the given part to track when it is no longer static

-- Ensure part isn't already monitored
if not StaticPartsIndex[Part] then
-- Ensure part is static and isn't already monitored
if not StaticPartsIndex[Part] or StaticPartMonitors[Part] then
return;
end;

Expand Down Expand Up @@ -314,6 +314,11 @@ end;
function BoundingBoxModule.ResumeMonitoring()
-- Starts update loop and part monitors for selected and indexed parts

-- Ensure bounding box is enabled
if not BoundingBoxEnabled then
return;
end;

-- Start static part monitors
for StaticPart in pairs(StaticPartsIndex) do
AddStaticPartMonitor(StaticPart);
Expand Down
Loading

0 comments on commit 73cebe3

Please sign in to comment.