Не подтверждена Коммит 4aec7e4c создал по автору Durman's avatar Durman Зафиксировано автором GitHub
Просмотр файлов

Revert "live update node - detection feature"

владелец 1807d83e
......@@ -21,9 +21,8 @@ from bpy.props import StringProperty, BoolProperty, FloatProperty
import sverchok
from sverchok.utils.sv_update_utils import version_and_sha
from sverchok.core.update_system import process_from_node
from sverchok.core.update_system import process_from_nodes
from sverchok.utils import profile
from sverchok.utils.context_managers import hard_freeze
objects_nodes_set = {'ObjectsNode', 'ObjectsNodeMK2', 'SvObjectsNodeMK3'}
......@@ -60,23 +59,9 @@ class Sv3DViewObjInUpdater(bpy.types.Operator, object):
obj_nodes.append(nodes)
''' reaches here only if event is TIMER and self.active '''
for nodes in obj_nodes:
# Nodes of current node tree
for node in nodes:
for i in node.object_names:
# object_names is collections of names of objects of SvObjectsNodeMK3
try:
obj = bpy.data.objects[i.name]
except KeyError:
continue
if obj.is_updated or obj.is_updated_data or obj.data.is_updated:
# check changes of object
with hard_freeze(node):
# freeze node tree for avoiding updating whole nodes of the tree
# print('calling process on:', node.name, node.id_data)
process_from_node(node)
# calling process_from_node switch node tree condition to has changed, that is not true
node.id_data.has_changed = False
for n in obj_nodes:
# print('calling process on:', n.name, n.id_data)
process_from_nodes(n)
return {'PASS_THROUGH'}
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать