Skip to content

Commit

Permalink
gapis/resolve: Fix commands vanishing on edit.
Browse files Browse the repository at this point in the history
The caller private field was not being propagated, resulting the command being grouped under the 0'th command.

Fixes: google#1265
  • Loading branch information
ben-clayton committed Oct 30, 2017
1 parent e3a7bdf commit fa2b837
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gapis/resolve/set.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ func change(ctx context.Context, p path.Node, val interface{}) (path.Node, error
if len(cmd.Extras().All()) == 0 {
cmd.Extras().Add(oldCmd.Extras().All()...)
}

// Propagate caller (not exposed to client)
cmd.SetCaller(oldCmd.Caller())

// Replace the command
cmds[cmdIdx] = cmd

// Store the new command list
Expand Down

0 comments on commit fa2b837

Please sign in to comment.