@@ -133,7 +133,7 @@ impl NodeGraphExecutor {
133133 }
134134
135135 /// Adds an evaluate request for whatever current network is cached.
136- pub ( crate ) fn submit_current_node_graph_evaluation ( & mut self , document : & mut DocumentMessageHandler , viewport_resolution : UVec2 , time : TimingInformation ) -> Result < ( ) , String > {
136+ pub ( crate ) fn submit_current_node_graph_evaluation ( & mut self , document : & mut DocumentMessageHandler , viewport_resolution : UVec2 , time : TimingInformation ) -> Result < Message , String > {
137137 let render_config = RenderConfig {
138138 viewport : Footprint {
139139 transform : document. metadata ( ) . document_to_viewport ,
@@ -155,7 +155,7 @@ impl NodeGraphExecutor {
155155
156156 self . futures . insert ( execution_id, ExecutionContext { export_config : None } ) ;
157157
158- Ok ( ( ) )
158+ Ok ( DeferMessage :: SetGraphSubmissionIndex ( execution_id ) . into ( ) )
159159 }
160160
161161 /// Evaluates a node graph, computing the entire graph
@@ -166,11 +166,9 @@ impl NodeGraphExecutor {
166166 time : TimingInformation ,
167167 inspect_node : Option < NodeId > ,
168168 ignore_hash : bool ,
169- ) -> Result < ( ) , String > {
169+ ) -> Result < Message , String > {
170170 self . update_node_graph ( document, inspect_node, ignore_hash) ?;
171- self . submit_current_node_graph_evaluation ( document, viewport_resolution, time) ?;
172-
173- Ok ( ( ) )
171+ self . submit_current_node_graph_evaluation ( document, viewport_resolution, time)
174172 }
175173
176174 /// Evaluates a node graph for export
0 commit comments