Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_meta_types.h
| Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | typedef struct MetaElem { | ||||
| float expy; | float expy; | ||||
| float expz; | float expz; | ||||
| float rad; /* radius of the meta element */ | float rad; /* radius of the meta element */ | ||||
| float rad2; /* temp field, used only while processing */ | float rad2; /* temp field, used only while processing */ | ||||
| float s; /* stiffness, how much of the element to fill */ | float s; /* stiffness, how much of the element to fill */ | ||||
| float len; /* old, only used for backwards compat. use dimensions now */ | float len; /* old, only used for backwards compat. use dimensions now */ | ||||
| float *mat, *imat; /* matrix and inverted matrix */ | float *mat, *imat; /* matrix and inverted matrix */ | ||||
| /* Draw_Data: stores pointers used for shader attributes */ | |||||
| float draw_scale_xform[3][4]; /* Matrix of Scale and Translation */ | |||||
campbellbarton: picky, rather not use capitals in DNA names, since this is runtime data it could be more clear… | |||||
Done Inline ActionsWhat with the short names even? Why not use stiffness_radius, transformation_matrix, ...? dfelinto: What with the short names even? Why not use stiffness_radius, transformation_matrix, ...?
(also… | |||||
| float draw_stiffness_radius; /* stiffness circle radius (only in edit mode) */ | |||||
| float pad; | |||||
| } MetaElem; | } MetaElem; | ||||
| typedef struct MetaBall { | typedef struct MetaBall { | ||||
| ID id; | ID id; | ||||
| struct AnimData *adt; | struct AnimData *adt; | ||||
| ListBase elems; | ListBase elems; | ||||
| ListBase disp; | ListBase disp; | ||||
| Show All 17 Lines | typedef struct MetaBall { | ||||
| /* bias elements to have an offset volume. | /* bias elements to have an offset volume. | ||||
| * mother ball changes will effect other objects thresholds, | * mother ball changes will effect other objects thresholds, | ||||
| * but these may also have their own thresh as an offset */ | * but these may also have their own thresh as an offset */ | ||||
| float thresh; | float thresh; | ||||
| /* used in editmode */ | /* used in editmode */ | ||||
| /*ListBase edit_elems;*/ | /*ListBase edit_elems;*/ | ||||
| MetaElem *lastelem; | MetaElem *lastelem; | ||||
| void *batch_cache; | |||||
| } MetaBall; | } MetaBall; | ||||
| /* **************** METABALL ********************* */ | /* **************** METABALL ********************* */ | ||||
| /* texflag */ | /* texflag */ | ||||
| #define MB_AUTOSPACE 1 | #define MB_AUTOSPACE 1 | ||||
| /* mb->flag */ | /* mb->flag */ | ||||
| Show All 27 Lines | |||||
picky, rather not use capitals in DNA names, since this is runtime data it could be more clear that stiffness_rad is only for display. eg:
disp_scale_xform, disp_stiffness_rad