Cleanup
This commit is contained in:
parent
0bf29a721b
commit
0775308066
@ -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
|
||||||
|
@ -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.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user