Commit 35fca09 1 parent 010afa2 commit 35fca09 Copy full SHA for 35fca09
File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 5
5
extern " C"
6
6
{
7
7
#endif
8
- void UImGui_StateTracker_push (UImGui_CTransaction transaction)
8
+ void UImGui_StateTracker_push (UImGui_CTransaction transaction, bool bRedoIsInit )
9
9
{
10
10
UImGui::StateTracker::push ({
11
11
.undofunc = [&](UImGui::TransactionPayload& payload) -> void
@@ -17,7 +17,7 @@ void UImGui_StateTracker_push(UImGui_CTransaction transaction)
17
17
transaction.redoFunc (&payload);
18
18
},
19
19
.payload = transaction.payload
20
- });
20
+ }, bRedoIsInit );
21
21
}
22
22
23
23
void UImGui_StateTracker_undo ()
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ extern "C"
22
22
} UImGui_CTransaction ;
23
23
24
24
// UntitledImGuiFramework Event Safety - Post-begin
25
- UIMGUI_PUBLIC_API void UImGui_StateTracker_push (UImGui_CTransaction transaction );
25
+ // bRedoIsInit defaults to false in the C++ API
26
+ UIMGUI_PUBLIC_API void UImGui_StateTracker_push (UImGui_CTransaction transaction , bool bRedoIsInit );
26
27
// UntitledImGuiFramework Event Safety - Post-begin
27
28
UIMGUI_PUBLIC_API void UImGui_StateTracker_undo ();
28
29
// UntitledImGuiFramework Event Safety - Post-begin
You can’t perform that action at this time.
0 commit comments