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

@ -245,7 +245,7 @@ class BrushModeWidget(QtGui.QComboBox):
self.setCurrentIndex(currentIndex)
finally:
self.adding = False
def indexDidChange(self):
if self.adding:
return

View File

@ -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")

View File

@ -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.