Made SimDebugData into a single global instance.
This way it doesn't have to be stored as DNA runtime pointers or passed down as a function argument. Currently there is now no property or button to enable debugging, this will be added again later.
This commit is contained in:
@@ -445,8 +445,6 @@ struct Implicit_Data {
|
||||
lMatrixCtor iM; /* masses */
|
||||
lMatrixCtor idFdX, idFdV; /* force jacobians */
|
||||
lMatrixCtor iS; /* filtering matrix for constraints */
|
||||
|
||||
struct SimDebugData *debug_data;
|
||||
};
|
||||
|
||||
Implicit_Data *BPH_mass_spring_solver_create(int numverts, int numsprings)
|
||||
@@ -469,12 +467,6 @@ int BPH_mass_spring_solver_numvert(Implicit_Data *id)
|
||||
return 0;
|
||||
}
|
||||
|
||||
void BPH_mass_spring_solver_debug_data(Implicit_Data *id, struct SimDebugData *debug_data)
|
||||
{
|
||||
if (id)
|
||||
id->debug_data = debug_data;
|
||||
}
|
||||
|
||||
/* ==== Transformation from/to root reference frames ==== */
|
||||
|
||||
BLI_INLINE void world_to_root_v3(Implicit_Data *data, int index, float r[3], const float v[3])
|
||||
|
Reference in New Issue
Block a user