Cleanup
This commit is contained in:
parent
0bf29a721b
commit
0775308066
@ -245,7 +245,7 @@ class BrushModeWidget(QtGui.QComboBox):
|
||||
self.setCurrentIndex(currentIndex)
|
||||
finally:
|
||||
self.adding = False
|
||||
|
||||
|
||||
def indexDidChange(self):
|
||||
if self.adding:
|
||||
return
|
||||
|
@ -6,6 +6,9 @@ import logging
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
updateLightsByCoord = updateLightsInSelection = NotImplemented
|
||||
|
||||
|
||||
def setMethod(name):
|
||||
if name == "pure":
|
||||
from mceditlib.relight import pure_python
|
||||
@ -20,9 +23,10 @@ def setMethod(name):
|
||||
from mceditlib.relight import with_sections
|
||||
setModule(with_sections)
|
||||
|
||||
|
||||
def setModule(mod):
|
||||
global updateLightsByCoord, updateLightsInSelection
|
||||
updateLightsByCoord = mod.updateLightsByCoord
|
||||
updateLightsInSelection = mod.updateLightsInSelection
|
||||
|
||||
setMethod("cython")
|
||||
setMethod("cython")
|
||||
|
@ -14,7 +14,8 @@ log = logging.getLogger(__name__)
|
||||
|
||||
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.
|
||||
|
||||
|
Reference in New Issue
Block a user