Fix: GPv3: Uninitialized runtime variable

The `eval_frame` was not initialized to a default value,
causing a crash in some situations on windows.
This at least avoids a crash even if the outcome of
whatever uses the `eval_frame` might not be correct.
This commit is contained in:
Falk David
2023-11-27 15:02:43 +01:00
parent fe90c82b20
commit 8dc9a9a0e3

View File

@@ -683,7 +683,7 @@ class GreasePencilRuntime {
*/
void *batch_cache = nullptr;
/* The frame on which the object was evaluated (only valid for evaluated object). */
int eval_frame;
int eval_frame = 0;
public:
GreasePencilRuntime() {}