This commit is contained in:
David Vierra 2015-09-16 05:30:15 -10:00
parent 0bf29a721b
commit 0775308066
3 changed files with 8 additions and 3 deletions

View File

@ -6,6 +6,9 @@ import logging
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
updateLightsByCoord = updateLightsInSelection = NotImplemented
def setMethod(name): def setMethod(name):
if name == "pure": if name == "pure":
from mceditlib.relight import pure_python from mceditlib.relight import pure_python
@ -20,6 +23,7 @@ def setMethod(name):
from mceditlib.relight import with_sections from mceditlib.relight import with_sections
setModule(with_sections) setModule(with_sections)
def setModule(mod): def setModule(mod):
global updateLightsByCoord, updateLightsInSelection global updateLightsByCoord, updateLightsInSelection
updateLightsByCoord = mod.updateLightsByCoord updateLightsByCoord = mod.updateLightsByCoord

View File

@ -14,7 +14,8 @@ log = logging.getLogger(__name__)
class ISelection(object): class ISelection(object):
""" """
Interface for block selections that can have any shape. Used by block_copy and block_fill. Interface for block selections that can have any shape. Used by copy and fill
operations, among others.
BoundingBox is the only provider for now. BoundingBox is the only provider for now.