Cleanup: whitespace, unused var
This commit is contained in:
parent
5af7257309
commit
fdc8b12726
|
@ -169,7 +169,7 @@ typedef enum {
|
|||
CLOTH_SIMSETTINGS_FLAG_TEARING = ( 1 << 4 ),// true if tearing is enabled
|
||||
CLOTH_SIMSETTINGS_FLAG_SCALING = ( 1 << 8 ), /* is advanced scaling active? */
|
||||
CLOTH_SIMSETTINGS_FLAG_CCACHE_EDIT = (1 << 12), /* edit cache in editmode */
|
||||
CLOTH_SIMSETTINGS_FLAG_NO_SPRING_COMPRESS = (1 << 13), /* don't allow spring compression */
|
||||
CLOTH_SIMSETTINGS_FLAG_NO_SPRING_COMPRESS = (1 << 13), /* don't allow spring compression */
|
||||
CLOTH_SIMSETTINGS_FLAG_SEW = (1 << 14), /* pull ends of loose edges together */
|
||||
} CLOTH_SIMSETTINGS_FLAGS;
|
||||
|
||||
|
|
|
@ -2142,7 +2142,8 @@ void CustomData_copy_elements(int type, void *src_data_ofs, void *dst_data_ofs,
|
|||
static void CustomData_copy_data_layer(
|
||||
const CustomData *source, CustomData *dest,
|
||||
int src_i, int dst_i,
|
||||
int src_index, int dst_index, int count) {
|
||||
int src_index, int dst_index, int count)
|
||||
{
|
||||
const LayerTypeInfo *typeInfo;
|
||||
int src_offset;
|
||||
int dst_offset;
|
||||
|
|
|
@ -368,8 +368,8 @@ MovieReconstructContext *BKE_tracking_reconstruction_context_new(MovieClip *clip
|
|||
(tracking->settings.reconstruction_flag & TRACKING_USE_KEYFRAME_SELECTION) != 0;
|
||||
|
||||
tracking_cameraIntrinscisOptionsFromTracking(tracking,
|
||||
width, height,
|
||||
&context->camera_intrinsics_options);
|
||||
width, height,
|
||||
&context->camera_intrinsics_options);
|
||||
|
||||
context->tracks_map = tracks_map_new(context->object_name, context->is_camera, num_tracks, 0);
|
||||
|
||||
|
|
|
@ -284,22 +284,26 @@ enum {
|
|||
BM_ELEM_SELECT = (1 << 0),
|
||||
BM_ELEM_HIDDEN = (1 << 1),
|
||||
BM_ELEM_SEAM = (1 << 2),
|
||||
BM_ELEM_SMOOTH = (1 << 3), /* used for faces and edges, note from the user POV,
|
||||
* this is a sharp edge when disabled */
|
||||
|
||||
BM_ELEM_TAG = (1 << 4), /* internal flag, used for ensuring correct normals
|
||||
* during multires interpolation, and any other time
|
||||
* when temp tagging is handy.
|
||||
* always assume dirty & clear before use. */
|
||||
/**
|
||||
* used for faces and edges, note from the user POV,
|
||||
* this is a sharp edge when disabled */
|
||||
BM_ELEM_SMOOTH = (1 << 3),
|
||||
/**
|
||||
* internal flag, used for ensuring correct normals
|
||||
* during multires interpolation, and any other time
|
||||
* when temp tagging is handy.
|
||||
* always assume dirty & clear before use. */
|
||||
BM_ELEM_TAG = (1 << 4),
|
||||
|
||||
BM_ELEM_DRAW = (1 << 5), /* edge display */
|
||||
|
||||
/* spare tag, assumed dirty, use define in each function to name based on use */
|
||||
// _BM_ELEM_TAG_ALT = (1 << 6), // UNUSED
|
||||
|
||||
BM_ELEM_INTERNAL_TAG = (1 << 7) /* for low level internal API tagging,
|
||||
* since tools may want to tag verts and
|
||||
* not have functions clobber them */
|
||||
/**
|
||||
* for low level internal API tagging,
|
||||
* since tools may want to tag verts and
|
||||
* not have functions clobber them */
|
||||
BM_ELEM_INTERNAL_TAG = (1 << 7),
|
||||
};
|
||||
|
||||
struct BPy_BMGeneric;
|
||||
|
|
|
@ -1672,7 +1672,7 @@ static BMWalker bmw_ConnectedVertexWalker_Type = {
|
|||
BMWalker *bm_walker_types[] = {
|
||||
&bmw_VertShellWalker_Type, /* BMW_VERT_SHELL */
|
||||
&bmw_LoopShellWalker_Type, /* BMW_LOOP_SHELL */
|
||||
&bmw_LoopShellWireWalker_Type, /* BMW_LOOP_SHELL_WIRE */
|
||||
&bmw_LoopShellWireWalker_Type, /* BMW_LOOP_SHELL_WIRE */
|
||||
&bmw_FaceShellWalker_Type, /* BMW_FACE_SHELL */
|
||||
&bmw_EdgeLoopWalker_Type, /* BMW_EDGELOOP */
|
||||
&bmw_FaceLoopWalker_Type, /* BMW_FACELOOP */
|
||||
|
|
|
@ -65,7 +65,7 @@ static EditBone *get_edit_bone(bArmature * armature, char *name) {
|
|||
|
||||
|
||||
ArmatureImporter::ArmatureImporter(UnitConverter *conv, MeshImporterBase *mesh, Scene *sce, const ImportSettings *import_settings) :
|
||||
import_settings(import_settings),
|
||||
import_settings(import_settings),
|
||||
unit_converter(conv),
|
||||
TransformReader(conv),
|
||||
scene(sce),
|
||||
|
|
|
@ -975,7 +975,7 @@ float UI_text_clip_middle_ex(
|
|||
float strwidth;
|
||||
|
||||
/* Add some epsilon to OK width, avoids 'ellipsing' text that nearly fits!
|
||||
* Better to have a small piece of the last char cut out, than two remaining chars replaced by an allipsis... */
|
||||
* Better to have a small piece of the last char cut out, than two remaining chars replaced by an allipsis... */
|
||||
okwidth += 1.0f + UI_DPI_FAC;
|
||||
|
||||
BLI_assert(str[0]);
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
|
||||
static EnumPropertyItem mode_items[] = {
|
||||
{PAINT_MASK_FLOOD_VALUE, "VALUE", 0, "Value", "Set mask to the level specified by the 'value' property"},
|
||||
{PAINT_MASK_FLOOD_VALUE_INVERSE, "VALUE_INVERSE", 0, "Value Inverted", "Set mask to the level specified by the inverted 'value' property"},
|
||||
{PAINT_MASK_FLOOD_VALUE_INVERSE, "VALUE_INVERSE", 0, "Value Inverted", "Set mask to the level specified by the inverted 'value' property"},
|
||||
{PAINT_MASK_INVERT, "INVERT", 0, "Invert", "Invert the mask"},
|
||||
{0}};
|
||||
|
||||
|
|
|
@ -365,9 +365,10 @@ bool handleNumInput(bContext *C, NumInput *n, const wmEvent *event)
|
|||
ascii[0] = '.';
|
||||
utf8_buf = ascii;
|
||||
break;
|
||||
#if 0 /* Those keys are not directly accessible in all layouts, preventing to generate matching events.
|
||||
* So we use a hack (ascii value) instead, see below.
|
||||
*/
|
||||
#if 0
|
||||
/* Those keys are not directly accessible in all layouts, preventing to generate matching events.
|
||||
* So we use a hack (ascii value) instead, see below.
|
||||
*/
|
||||
case EQUALKEY:
|
||||
case PADASTERKEY:
|
||||
if (!(n->flag & NUM_EDIT_FULL)) {
|
||||
|
|
|
@ -1610,26 +1610,26 @@ static GPUBuffer *gpu_get_grid_buffer(int gridsize, GLenum *index_type, unsigned
|
|||
|
||||
#define FILL_FAST_BUFFER(type_) \
|
||||
{ \
|
||||
type_ *buffer; \
|
||||
buffers->index_buf_fast = GPU_buffer_alloc(sizeof(type_) * 6 * totgrid, false); \
|
||||
buffer = GPU_buffer_lock(buffers->index_buf_fast, GPU_BINDING_INDEX); \
|
||||
if (buffer) { \
|
||||
int i; \
|
||||
for (i = 0; i < totgrid; i++) { \
|
||||
int currentquad = i * 6; \
|
||||
buffer[currentquad] = i * gridsize * gridsize + gridsize - 1; \
|
||||
buffer[currentquad + 1] = i * gridsize * gridsize; \
|
||||
buffer[currentquad + 2] = (i + 1) * gridsize * gridsize - gridsize; \
|
||||
buffer[currentquad + 3] = (i + 1) * gridsize * gridsize - 1; \
|
||||
buffer[currentquad + 4] = i * gridsize * gridsize + gridsize - 1; \
|
||||
buffer[currentquad + 5] = (i + 1) * gridsize * gridsize - gridsize; \
|
||||
} \
|
||||
GPU_buffer_unlock(buffers->index_buf_fast, GPU_BINDING_INDEX); \
|
||||
type_ *buffer; \
|
||||
buffers->index_buf_fast = GPU_buffer_alloc(sizeof(type_) * 6 * totgrid, false); \
|
||||
buffer = GPU_buffer_lock(buffers->index_buf_fast, GPU_BINDING_INDEX); \
|
||||
if (buffer) { \
|
||||
int i; \
|
||||
for (i = 0; i < totgrid; i++) { \
|
||||
int currentquad = i * 6; \
|
||||
buffer[currentquad] = i * gridsize * gridsize + gridsize - 1; \
|
||||
buffer[currentquad + 1] = i * gridsize * gridsize; \
|
||||
buffer[currentquad + 2] = (i + 1) * gridsize * gridsize - gridsize; \
|
||||
buffer[currentquad + 3] = (i + 1) * gridsize * gridsize - 1; \
|
||||
buffer[currentquad + 4] = i * gridsize * gridsize + gridsize - 1; \
|
||||
buffer[currentquad + 5] = (i + 1) * gridsize * gridsize - gridsize; \
|
||||
} \
|
||||
GPU_buffer_unlock(buffers->index_buf_fast, GPU_BINDING_INDEX); \
|
||||
} \
|
||||
else { \
|
||||
GPU_buffer_free(buffers->index_buf_fast); \
|
||||
buffers->index_buf_fast = NULL; \
|
||||
} \
|
||||
GPU_buffer_free(buffers->index_buf_fast); \
|
||||
buffers->index_buf_fast = NULL; \
|
||||
} \
|
||||
} (void)0
|
||||
|
||||
GPU_PBVH_Buffers *GPU_build_grid_pbvh_buffers(int *grid_indices, int totgrid,
|
||||
|
|
|
@ -227,7 +227,7 @@ typedef enum IMB_Timecode_Type {
|
|||
* and is a sane default) */
|
||||
|
||||
IMB_TC_FREE_RUN = 2, /* use global timestamp written by recording
|
||||
* device (prosumer camcorders e.g. can do that) */
|
||||
* device (prosumer camcorders e.g. can do that) */
|
||||
IMB_TC_INTERPOLATED_REC_DATE_FREE_RUN = 4, /* interpolate a global timestamp using the
|
||||
* record date and time written by recording
|
||||
* device (*every* consumer camcorder can do
|
||||
|
|
|
@ -66,7 +66,7 @@ EnumPropertyItem id_type_items[] = {
|
|||
{ID_MA, "MATERIAL", ICON_MATERIAL_DATA, "Material", ""},
|
||||
{ID_MB, "META", ICON_META_DATA, "MetaBall", ""},
|
||||
{ID_ME, "MESH", ICON_MESH_DATA, "Mesh", ""},
|
||||
{ID_MC, "MOVIECLIP", ICON_CLIP, "MovieClip", ""},
|
||||
{ID_MC, "MOVIECLIP", ICON_CLIP, "MovieClip", ""},
|
||||
{ID_NT, "NODETREE", ICON_NODETREE, "NodeTree", ""},
|
||||
{ID_OB, "OBJECT", ICON_OBJECT_DATA, "Object", ""},
|
||||
{ID_PC, "PAINTCURVE", ICON_CURVE_BEZCURVE, "Paint Curve", ""},
|
||||
|
@ -74,12 +74,12 @@ EnumPropertyItem id_type_items[] = {
|
|||
{ID_PA, "PARTICLE", ICON_PARTICLE_DATA, "Particle", ""},
|
||||
{ID_SCE, "SCENE", ICON_SCENE_DATA, "Scene", ""},
|
||||
{ID_SCR, "SCREEN", ICON_SPLITSCREEN, "Screen", ""},
|
||||
{ID_SO, "SOUND", ICON_PLAY_AUDIO, "Sound", ""},
|
||||
{ID_SO, "SOUND", ICON_PLAY_AUDIO, "Sound", ""},
|
||||
{ID_SPK, "SPEAKER", ICON_SPEAKER, "Speaker", ""},
|
||||
{ID_TXT, "TEXT", ICON_TEXT, "Text", ""},
|
||||
{ID_TE, "TEXTURE", ICON_TEXTURE_DATA, "Texture", ""},
|
||||
{ID_WM, "WINDOWMANAGER", ICON_FULLSCREEN, "Window Manager", ""},
|
||||
{ID_WO, "WORLD", ICON_WORLD_DATA, "World", ""},
|
||||
{ID_WO, "WORLD", ICON_WORLD_DATA, "World", ""},
|
||||
{0, NULL, 0, NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ EnumPropertyItem modifier_type_items[] = {
|
|||
{0, "", 0, N_("Deform"), ""},
|
||||
{eModifierType_Armature, "ARMATURE", ICON_MOD_ARMATURE, "Armature", ""},
|
||||
{eModifierType_Cast, "CAST", ICON_MOD_CAST, "Cast", ""},
|
||||
{eModifierType_CorrectiveSmooth, "CORRECTIVE_SMOOTH", ICON_MOD_SMOOTH, "Corrective Smooth", ""},
|
||||
{eModifierType_CorrectiveSmooth, "CORRECTIVE_SMOOTH", ICON_MOD_SMOOTH, "Corrective Smooth", ""},
|
||||
{eModifierType_Curve, "CURVE", ICON_MOD_CURVE, "Curve", ""},
|
||||
{eModifierType_Displace, "DISPLACE", ICON_MOD_DISPLACE, "Displace", ""},
|
||||
{eModifierType_Hook, "HOOK", ICON_HOOK, "Hook", ""},
|
||||
|
|
|
@ -366,12 +366,12 @@ EnumPropertyItem views_format_multiview_items[] = {
|
|||
|
||||
EnumPropertyItem stereo3d_display_items[] = {
|
||||
{S3D_DISPLAY_ANAGLYPH, "ANAGLYPH", 0, "Anaglyph",
|
||||
"Render views for left and right eyes as two differently filtered colors in a single image "
|
||||
"(anaglyph glasses are required)"},
|
||||
"Render views for left and right eyes as two differently filtered colors in a single image "
|
||||
"(anaglyph glasses are required)"},
|
||||
{S3D_DISPLAY_INTERLACE, "INTERLACE", 0, "Interlace",
|
||||
"Render views for left and right eyes interlaced in a single image (3D-ready monitor is required)"},
|
||||
"Render views for left and right eyes interlaced in a single image (3D-ready monitor is required)"},
|
||||
{S3D_DISPLAY_PAGEFLIP, "TIMESEQUENTIAL", 0, "Time Sequential",
|
||||
"Render alternate eyes (also known as page flip, quad buffer support in the graphic card is required)"},
|
||||
"Render alternate eyes (also known as page flip, quad buffer support in the graphic card is required)"},
|
||||
{S3D_DISPLAY_SIDEBYSIDE, "SIDEBYSIDE", 0, "Side-by-Side", "Render views for left and right eyes side-by-side"},
|
||||
{S3D_DISPLAY_TOPBOTTOM, "TOPBOTTOM", 0, "Top-Bottom", "Render views for left and right eyes one above another"},
|
||||
{0, NULL, 0, NULL, NULL}
|
||||
|
|
|
@ -61,7 +61,7 @@
|
|||
(void)0
|
||||
|
||||
#define DEF_GET_SET(type, arr) \
|
||||
void rna_Test_ ## arr ## _get(PointerRNA *ptr, type * values) \
|
||||
void rna_Test_ ## arr ## _get(PointerRNA *ptr, type * values) \
|
||||
{ \
|
||||
memcpy(values, arr, sizeof(arr)); \
|
||||
} \
|
||||
|
@ -70,10 +70,10 @@
|
|||
{ \
|
||||
memcpy(arr, values, sizeof(arr)); \
|
||||
} \
|
||||
(void)0
|
||||
((void)0)
|
||||
|
||||
#define DEF_GET_SET_LEN(arr, max) \
|
||||
static int rna_Test_ ## arr ## _get_length(PointerRNA * ptr) \
|
||||
static int rna_Test_ ## arr ## _get_length(PointerRNA * ptr) \
|
||||
{ \
|
||||
return arr ## _len; \
|
||||
} \
|
||||
|
@ -87,7 +87,7 @@
|
|||
\
|
||||
return 1; \
|
||||
} \
|
||||
(void)0
|
||||
((void)0)
|
||||
|
||||
DEF_VARS(float, f);
|
||||
DEF_VARS(int, i);
|
||||
|
|
|
@ -177,6 +177,8 @@ static bool dependsOnNormals(ModifierData *md)
|
|||
if (smd->use_opensubdiv && md->next == NULL) {
|
||||
return true;
|
||||
}
|
||||
#else
|
||||
UNUSED_VARS(md);
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue