The goal is to solve confusion of the "All rights reserved" for licensing
code under an open-source license.
The phrase "All rights reserved" comes from a historical convention that
required this phrase for the copyright protection to apply. This convention
is no longer relevant.
However, even though the phrase has no meaning in establishing the copyright
it has not lost meaning in terms of licensing.
This change makes it so code under the Blender Foundation copyright does
not use "all rights reserved". This is also how the GPL license itself
states how to apply it to the source code:
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software ...
This change does not change copyright notice in cases when the copyright
is dual (BF and an author), or just an author of the code. It also does
mot change copyright which is inherited from NaN Holding BV as it needs
some further investigation about what is the proper way to handle it.
79 lines
2.3 KiB
C
79 lines
2.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later
|
|
* Copyright 2008 Blender Foundation */
|
|
|
|
/** \file
|
|
* \ingroup editors
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
struct Base;
|
|
struct MetaElem;
|
|
struct Object;
|
|
struct SelectPick_Params;
|
|
struct UndoType;
|
|
struct bContext;
|
|
struct wmKeyConfig;
|
|
|
|
void ED_operatortypes_metaball(void);
|
|
void ED_operatormacros_metaball(void);
|
|
void ED_keymap_metaball(struct wmKeyConfig *keyconf);
|
|
|
|
/**
|
|
* Add meta-element primitive to meta-ball object (which is in edit mode).
|
|
*/
|
|
struct MetaElem *ED_mball_add_primitive(struct bContext *C,
|
|
struct Object *obedit,
|
|
bool obedit_is_new,
|
|
float mat[4][4],
|
|
float dia,
|
|
int type);
|
|
|
|
struct Base *ED_mball_base_and_elem_from_select_buffer(struct Base **bases,
|
|
uint bases_len,
|
|
const uint select_id,
|
|
struct MetaElem **r_ml);
|
|
|
|
/**
|
|
* Select meta-element with mouse click (user can select radius circle or stiffness circle).
|
|
*
|
|
* \return True when pick finds an element or the selection changed.
|
|
*/
|
|
bool ED_mball_select_pick(struct bContext *C,
|
|
const int mval[2],
|
|
const struct SelectPick_Params *params);
|
|
|
|
bool ED_mball_deselect_all_multi_ex(struct Base **bases, uint bases_len);
|
|
bool ED_mball_deselect_all_multi(struct bContext *C);
|
|
|
|
/**
|
|
* This function is used to free all MetaElems from MetaBall.
|
|
*/
|
|
void ED_mball_editmball_free(struct Object *obedit);
|
|
/**
|
|
* This function is called, when MetaBall Object is switched from object mode to edit mode.
|
|
*/
|
|
void ED_mball_editmball_make(struct Object *obedit);
|
|
/**
|
|
* This function is called, when MetaBall Object switched from edit mode to object mode.
|
|
* List of MetaElements is copied from object->data->edit_elems to object->data->elems.
|
|
*/
|
|
void ED_mball_editmball_load(struct Object *obedit);
|
|
|
|
/* editmball_undo.c */
|
|
|
|
/** Export for ED_undo_sys. */
|
|
void ED_mball_undosys_type(struct UndoType *ut);
|
|
|
|
#define MBALLSEL_STIFF (1u << 30)
|
|
#define MBALLSEL_RADIUS (1u << 31)
|
|
#define MBALLSEL_ANY (MBALLSEL_STIFF | MBALLSEL_RADIUS)
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|