Skip to content

Commit

Permalink
update bpy for 2.93+ (#4025)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeffii authored Apr 7, 2021
1 parent ad8aac5 commit 0190005
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions core/monad.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@
from sverchok.core.update_system import make_tree_from_nodes, do_update
from sverchok.core.monad_properties import SvIntPropertySettingsGroup, SvFloatPropertySettingsGroup, ensure_unique
from sverchok.core.events import CurrentEvents, BlenderEventsTypes
from sverchok.utils.handle_blender_data import get_sv_trees
from sverchok.utils.handle_blender_data import get_sv_trees, get_func_and_args
from sverchok.utils.sv_json_export import JSONExporter
from sverchok.utils.sv_json_import import JSONImporter


MONAD_COLOR = (0.830819, 0.911391, 0.754562)


Expand Down Expand Up @@ -211,7 +212,12 @@ def add_prop_from(self, socket):
if other.prop_name:

prop_name = other.prop_name
prop_func, prop_dict = other.node.__annotations__.get(prop_name, ("", {}))

try:
prop_func, prop_dict = get_func_and_args(other.node.__annotations__[prop_name])
except:
prop_func, prop_dict = ("", {})


if 'attr' in prop_dict:
prop_dict.pop('attr') # this we store in prop_name anyway
Expand Down

0 comments on commit 0190005

Please sign in to comment.