Skip to content

Commit e9ef513

Browse files
committed
Use geometry by default on custom expression functions
Got burnt by my own code. Them feels.
1 parent 6e140b9 commit e9ef513

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def myfunc(values, *args):
3939
"""
4040
class QgsExpressionFunction(QgsExpression.Function):
4141

42-
def __init__(self, func, name, args, group, helptext='', usesgeometry=False, expandargs=False):
42+
def __init__(self, func, name, args, group, helptext='', usesgeometry=True, expandargs=False):
4343
QgsExpression.Function.__init__(self, name, args, group, helptext, usesgeometry)
4444
self.function = func
4545
self.expandargs = expandargs

0 commit comments

Comments
 (0)