Skip to content

Commit

Permalink
Fix Expression chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahrkeenerh committed Aug 26, 2022
1 parent 1488d4e commit 3912c35
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion extended_scripting/Python/Expression.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import bpy
from ..base_node import SN_ScriptingBaseNode
from ...utils import unique_collection_name, get_python_name
from ...utils import unique_collection_name


class SN_ExpressionNode(bpy.types.Node, SN_ScriptingBaseNode):
Expand Down Expand Up @@ -71,6 +71,8 @@ def evaluate(self, context):

if not expression:
expression = None
else:
expression = expression.replace('eval("', '').replace('")', '')

if self.require_execute:
self.code = f"return_{self.static_uid} = {expression}"
Expand Down

0 comments on commit 3912c35

Please sign in to comment.