|
@@ -14,6 +14,7 @@ def TellClasses():
|
|
|
ExecuteNodeTree,
|
|
ExecuteNodeTree,
|
|
|
# CreateMetaGroup,
|
|
# CreateMetaGroup,
|
|
|
QueryNodeSockets,
|
|
QueryNodeSockets,
|
|
|
|
|
+ ForceDisplayUpdate,
|
|
|
CleanUpNodeGraph,
|
|
CleanUpNodeGraph,
|
|
|
MantisMuteNode,
|
|
MantisMuteNode,
|
|
|
MantisVisualizeOutput,
|
|
MantisVisualizeOutput,
|
|
@@ -306,6 +307,21 @@ class QueryNodeSockets(Operator):
|
|
|
return {"FINISHED"}
|
|
return {"FINISHED"}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+class ForceDisplayUpdate(Operator):
|
|
|
|
|
+ """Utility Operator for querying the data in a socket"""
|
|
|
|
|
+ bl_idname = "mantis.force_display_update"
|
|
|
|
|
+ bl_label = "Force Mantis Display Update"
|
|
|
|
|
+
|
|
|
|
|
+ @classmethod
|
|
|
|
|
+ def poll(cls, context):
|
|
|
|
|
+ return (mantis_tree_poll_op(context))
|
|
|
|
|
+
|
|
|
|
|
+ def execute(self, context):
|
|
|
|
|
+ base_tree = bpy.context.space_data.path[0].node_tree
|
|
|
|
|
+ base_tree.display_update(context)
|
|
|
|
|
+ return {"FINISHED"}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
class CleanUpNodeGraph(bpy.types.Operator):
|
|
class CleanUpNodeGraph(bpy.types.Operator):
|
|
|
"""Clean Up Node Graph"""
|
|
"""Clean Up Node Graph"""
|
|
|
bl_idname = "mantis.nodes_cleanup"
|
|
bl_idname = "mantis.nodes_cleanup"
|