Fix Square shape returning the existing shaped selection
This commit is contained in:
parent
94757bdccd
commit
12dae3d174
@ -7,6 +7,7 @@ from PySide import QtGui, QtCore
|
|||||||
import numpy
|
import numpy
|
||||||
from mcedit2.widgets.layout import Column
|
from mcedit2.widgets.layout import Column
|
||||||
from mceditlib import selection
|
from mceditlib import selection
|
||||||
|
from mceditlib.selection import BoundingBox
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -142,8 +143,7 @@ class Square(BrushShape):
|
|||||||
self.optionsChanged.emit()
|
self.optionsChanged.emit()
|
||||||
|
|
||||||
def createShapedSelection(self, box, dimension):
|
def createShapedSelection(self, box, dimension):
|
||||||
# BoundingBox is already a SelectionBox, so just return it
|
return BoundingBox(box.origin, box.size)
|
||||||
return box
|
|
||||||
|
|
||||||
def getOptionsWidget(self):
|
def getOptionsWidget(self):
|
||||||
return self.optionsWidget
|
return self.optionsWidget
|
||||||
|
Reference in New Issue
Block a user