Пример #1
0
static void copyData(const ModifierData *md, ModifierData *target)
{
	const SurfaceDeformModifierData *smd = (const SurfaceDeformModifierData *)md;
	SurfaceDeformModifierData *tsmd = (SurfaceDeformModifierData *)target;

	modifier_copyData_generic(md, target);

	if (smd->verts) {
		tsmd->verts = MEM_dupallocN(smd->verts);

		for (int i = 0; i < smd->numverts; i++) {
			if (smd->verts[i].binds) {
				tsmd->verts[i].binds = MEM_dupallocN(smd->verts[i].binds);

				for (int j = 0; j < smd->verts[i].numbinds; j++) {
					if (smd->verts[i].binds[j].vert_inds) {
						tsmd->verts[i].binds[j].vert_inds = MEM_dupallocN(smd->verts[i].binds[j].vert_inds);
					}

					if (smd->verts[i].binds[j].vert_weights) {
						tsmd->verts[i].binds[j].vert_weights = MEM_dupallocN(smd->verts[i].binds[j].vert_weights);
					}
				}
			}
		}
	}
}
Пример #2
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	MeshCacheModifierData *mcmd = (MeshCacheModifierData *)md;
	MeshCacheModifierData *tmcmd = (MeshCacheModifierData *)target;
#endif
	modifier_copyData_generic(md, target);
}
Пример #3
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	SimpleDeformModifierData *smd  = (SimpleDeformModifierData *)md;
	SimpleDeformModifierData *tsmd = (SimpleDeformModifierData *)target;
#endif
	modifier_copyData_generic(md, target);
}
Пример #4
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	RemeshModifierData *rmd = (RemeshModifierData *) md;
	RemeshModifierData *trmd = (RemeshModifierData *) target;
#endif
	modifier_copyData_generic(md, target);
}
Пример #5
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	SolidifyModifierData *smd = (SolidifyModifierData *) md;
	SolidifyModifierData *tsmd = (SolidifyModifierData *) target;
#endif
	modifier_copyData_generic(md, target);
}
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	UVProjectModifierData *umd = (UVProjectModifierData *) md;
	UVProjectModifierData *tumd = (UVProjectModifierData *) target;
#endif
	modifier_copyData_generic(md, target);
}
Пример #7
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	DecimateModifierData *dmd = (DecimateModifierData *) md;
	DecimateModifierData *tdmd = (DecimateModifierData *) target;
#endif
	modifier_copyData_generic(md, target);
}
Пример #8
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	TriangulateModifierData *smd = (TriangulateModifierData *) md;
	TriangulateModifierData *tsmd = (TriangulateModifierData *) target;
#endif
	modifier_copyData_generic(md, target);
}
Пример #9
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	CastModifierData *cmd = (CastModifierData *) md;
	CastModifierData *tcmd = (CastModifierData *) target;
#endif
	modifier_copyData_generic(md, target);
}
Пример #10
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	MultiresModifierData *mmd = (MultiresModifierData *) md;
	MultiresModifierData *tmmd = (MultiresModifierData *) target;
#endif
	modifier_copyData_generic(md, target);
}
Пример #11
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	ShrinkwrapModifierData *smd  = (ShrinkwrapModifierData *)md;
	ShrinkwrapModifierData *tsmd = (ShrinkwrapModifierData *)target;
#endif
	modifier_copyData_generic(md, target);
}
Пример #12
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	BuildModifierData *bmd = (BuildModifierData *) md;
	BuildModifierData *tbmd = (BuildModifierData *) target;
#endif
	modifier_copyData_generic(md, target);
}
Пример #13
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	WireframeModifierData *wmd = (WireframeModifierData *)md;
	WireframeModifierData *twmd = (WireframeModifierData *)target;
#endif
	modifier_copyData_generic(md, target);
}
Пример #14
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	ScrewModifierData *sltmd = (ScrewModifierData *) md;
	ScrewModifierData *tltmd = (ScrewModifierData *) target;
#endif
	modifier_copyData_generic(md, target);
}
Пример #15
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	ParticleInstanceModifierData *pimd = (ParticleInstanceModifierData *) md;
	ParticleInstanceModifierData *tpimd = (ParticleInstanceModifierData *) target;
#endif
	modifier_copyData_generic(md, target);
}
Пример #16
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	ArrayModifierData *amd = (ArrayModifierData *) md;
	ArrayModifierData *tamd = (ArrayModifierData *) target;
#endif
	modifier_copyData_generic(md, target);
}
Пример #17
0
static void copyData(const ModifierData *md, ModifierData *target, const int flag)
{
  const WarpModifierData *wmd = (const WarpModifierData *)md;
  WarpModifierData *twmd = (WarpModifierData *)target;

  modifier_copyData_generic(md, target, flag);

  twmd->curfalloff = curvemapping_copy(wmd->curfalloff);
}
Пример #18
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	LatticeModifierData *lmd = (LatticeModifierData *) md;
	LatticeModifierData *tlmd = (LatticeModifierData *) target;
#endif

	modifier_copyData_generic(md, target);
}
Пример #19
0
static void copyData(ModifierData *md, ModifierData *target)
{
	HookModifierData *hmd = (HookModifierData *) md;
	HookModifierData *thmd = (HookModifierData *) target;

	modifier_copyData_generic(md, target);

	thmd->indexar = MEM_dupallocN(hmd->indexar);
}
Пример #20
0
static void copyData(ModifierData *md, ModifierData *target)
{
	WarpModifierData *wmd = (WarpModifierData *) md;
	WarpModifierData *twmd = (WarpModifierData *) target;

	modifier_copyData_generic(md, target);

	twmd->curfalloff = curvemapping_copy(wmd->curfalloff);
}
Пример #21
0
static void copy_data(ModifierData *md, ModifierData *target)
{
#if 0
	LaplacianSmoothModifierData *smd = (LaplacianSmoothModifierData *) md;
	LaplacianSmoothModifierData *tsmd = (LaplacianSmoothModifierData *) target;
#endif

	modifier_copyData_generic(md, target);
}
Пример #22
0
static void copyData(ModifierData *md, ModifierData *target)
{
	LaplacianDeformModifierData *lmd = (LaplacianDeformModifierData *)md;
	LaplacianDeformModifierData *tlmd = (LaplacianDeformModifierData *)target;

	modifier_copyData_generic(md, target);

	tlmd->vertexco = MEM_dupallocN(lmd->vertexco);
	tlmd->cache_system = MEM_dupallocN(lmd->cache_system);
}
Пример #23
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	UVProjectModifierData *umd = (UVProjectModifierData *) md;
#endif
	UVProjectModifierData *tumd = (UVProjectModifierData *) target;

	modifier_copyData_generic(md, target);

	id_us_plus((ID *)tumd->image);
}
Пример #24
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	ExplodeModifierData *emd = (ExplodeModifierData *) md;
#endif
	ExplodeModifierData *temd = (ExplodeModifierData *) target;

	modifier_copyData_generic(md, target);

	temd->facepa = NULL;
}
Пример #25
0
static void copyData(const ModifierData *md, ModifierData *target, const int flag)
{
#if 0
  const ExplodeModifierData *emd = (const ExplodeModifierData *)md;
#endif
  ExplodeModifierData *temd = (ExplodeModifierData *)target;

  modifier_copyData_generic(md, target, flag);

  temd->facepa = NULL;
}
Пример #26
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	SubsurfModifierData *smd = (SubsurfModifierData *) md;
#endif
	SubsurfModifierData *tsmd = (SubsurfModifierData *) target;

	modifier_copyData_generic(md, target);

	tsmd->emCache = tsmd->mCache = NULL;

}
Пример #27
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	ParticleSystemModifierData *psmd = (ParticleSystemModifierData *) md;
#endif
	ParticleSystemModifierData *tpsmd = (ParticleSystemModifierData *) target;

	modifier_copyData_generic(md, target);

	tpsmd->dm = NULL;
	tpsmd->totdmvert = tpsmd->totdmedge = tpsmd->totdmface = 0;
}
Пример #28
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	DisplaceModifierData *dmd = (DisplaceModifierData *) md;
#endif
	DisplaceModifierData *tdmd = (DisplaceModifierData *) target;

	modifier_copyData_generic(md, target);

	if (tdmd->texture) {
		id_us_plus(&tdmd->texture->id);
	}
}
Пример #29
0
static void copyData(ModifierData *md, ModifierData *target)
{
#if 0
	WeightVGProximityModifierData *wmd  = (WeightVGProximityModifierData *) md;
#endif
	WeightVGProximityModifierData *twmd = (WeightVGProximityModifierData *) target;

	modifier_copyData_generic(md, target);

	if (twmd->mask_texture) {
		id_us_plus(&twmd->mask_texture->id);
	}
}
Пример #30
0
static void copyData(ModifierData *md, ModifierData *target)
{
	WeightVGEditModifierData *wmd  = (WeightVGEditModifierData *) md;
	WeightVGEditModifierData *twmd = (WeightVGEditModifierData *) target;

	modifier_copyData_generic(md, target);

	twmd->cmap_curve = curvemapping_copy(wmd->cmap_curve);

	if (twmd->mask_texture) {
		id_us_plus(&twmd->mask_texture->id);
	}
}