Пример #1
0
static PointerRNA rna_ClothSettings_rest_shape_key_get(PointerRNA *ptr)
{
	Object *ob= (Object*)ptr->id.data;
	ClothSimSettings *sim= (ClothSimSettings*)ptr->data;

	return rna_object_shapekey_index_get(ob->data, sim->shapekey_rest);
}
Пример #2
0
static PointerRNA rna_ShapeKey_relative_key_get(PointerRNA *ptr)
{
	KeyBlock *kb = (KeyBlock *)ptr->data;

	return rna_object_shapekey_index_get(ptr->id.data, kb->relative);
}