Initial Grease Pencil 3.0 stage #106848
|
@ -320,7 +320,14 @@ void legacy_gpencil_to_grease_pencil(Main &main, GreasePencil &grease_pencil, bG
|
|||
|
||||
class GreasePencilRuntime {
|
||||
public:
|
||||
/**
|
||||
* Allocated and freed by the drawing code. See `DRW_grease_pencil_batch_cache_*` functions.
|
||||
*/
|
||||
void *batch_cache = nullptr;
|
||||
|
||||
public:
|
||||
GreasePencilRuntime() {}
|
||||
~GreasePencilRuntime() {}
|
||||
};
|
||||
|
||||
} // namespace blender::bke
|
||||
|
|
|
@ -109,11 +109,8 @@ static void grease_pencil_copy_data(Main * /*bmain*/,
|
|||
grease_pencil_src->active_layer->wrap().name());
|
||||
}
|
||||
|
||||
/* Duplicate runtime data. */
|
||||
if (grease_pencil_src->runtime) {
|
||||
grease_pencil_dst->runtime = MEM_new<bke::GreasePencilRuntime>(__func__,
|
||||
*grease_pencil_src->runtime);
|
||||
}
|
||||
/* Make sure the runtime pointer exists. */
|
||||
grease_pencil_dst->runtime = MEM_new<bke::GreasePencilRuntime>(__func__);
|
||||
}
|
||||
|
||||
static void grease_pencil_free_data(ID *id)
|
||||
|
|
Loading…
Reference in New Issue